Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi The number of sector is unsigned long, so use...
details: https://anonhg.NetBSD.org/src/rev/3e36b1142fbf
branches: trunk
changeset: 526988:3e36b1142fbf
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed May 15 13:01:27 2002 +0000
description:
The number of sector is unsigned long, so use %lu to print it.
diffstat:
sys/dev/scsipi/sd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4e3685bdb528 -r 3e36b1142fbf sys/dev/scsipi/sd.c
--- a/sys/dev/scsipi/sd.c Wed May 15 11:43:22 2002 +0000
+++ b/sys/dev/scsipi/sd.c Wed May 15 13:01:27 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sd.c,v 1.182 2002/05/05 15:16:30 bouyer Exp $ */
+/* $NetBSD: sd.c,v 1.183 2002/05/15 13:01:27 bouyer Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.182 2002/05/05 15:16:30 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.183 2002/05/15 13:01:27 bouyer Exp $");
#include "opt_scsi.h"
#include "rnd.h"
@@ -185,7 +185,7 @@
format_bytes(pbuf, sizeof(pbuf),
(u_int64_t)dp->disksize * dp->blksize);
printf(
- "%s, %ld cyl, %ld head, %ld sec, %ld bytes/sect x %ld sectors",
+ "%s, %ld cyl, %ld head, %ld sec, %ld bytes/sect x %lu sectors",
pbuf, dp->cyls, dp->heads, dp->sectors, dp->blksize,
dp->disksize);
break;
Home |
Main Index |
Thread Index |
Old Index