summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorsborrill <sborrill@NetBSD.org>2008-04-14 14:53:52 +0000
committersborrill <sborrill@NetBSD.org>2008-04-14 14:53:52 +0000
commit244791d8a223955a9fb858854ff91805dfd03145 (patch)
tree943f5ac0c686db0c98835d77acd355eb55976454 /sys/dev/raidframe
parent6dadfb80d46be5bf187442f20d73d662a4629497 (diff)
Fix display of total number of sectors if > 2^32 on 32-bit machines
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_driver.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/raidframe/rf_driver.c b/sys/dev/raidframe/rf_driver.c
index b170debc9ea..ad3de08fe39 100644
--- a/sys/dev/raidframe/rf_driver.c
+++ b/sys/dev/raidframe/rf_driver.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_driver.c,v 1.116 2008/02/12 03:12:41 oster Exp $ */
+/* $NetBSD: rf_driver.c,v 1.117 2008/04/14 14:53:52 sborrill Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -73,7 +73,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.116 2008/02/12 03:12:41 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.117 2008/04/14 14:53:52 sborrill Exp $");
#include "opt_raid_diagnostic.h"
@@ -425,10 +425,10 @@ rf_Configure(RF_Raid_t *raidPtr, RF_Config_t *cfgPtr, RF_AutoConfig_t *ac)
}
}
printf("\n");
- printf("raid%d: Total Sectors: %lu (%lu MB)\n",
+ printf("raid%d: Total Sectors: %" PRIu64 " (%" PRIu64 " MB)\n",
raidPtr->raidid,
- (unsigned long) raidPtr->totalSectors,
- (unsigned long) (raidPtr->totalSectors / 1024 *
+ raidPtr->totalSectors,
+ (raidPtr->totalSectors / 1024 *
(1 << raidPtr->logBytesPerSector) / 1024));
return (0);