aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorGravatar Mike Frysinger <vapier@gentoo.org>2006-05-26 02:05:19 +0000
committerGravatar Mike Frysinger <vapier@gentoo.org>2006-05-26 02:05:19 +0000
commit314c739b07ea860519cabcdffea73db2b0c3a07a (patch)
tree37d97e241d6fcc6a80fa30c5e968c4899f55c862 /miscutils
parent4f93a634673c25b052f9908fe5c43a6235680652 (diff)
downloadbusybox-314c739b07ea860519cabcdffea73db2b0c3a07a.tar.gz
busybox-314c739b07ea860519cabcdffea73db2b0c3a07a.tar.bz2
Yann E. MORIN. writes:
hdparm has a uint64_t passed to printf with a %llu format (which is ok, because it's the same size), but without first being casted(?) to unsigned long long int. Which is kinda funny because it's done OK on a few lines above...
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/hdparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 4bca1222a..6a8149841 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -836,7 +836,7 @@ static void identify(uint16_t *id_supplied)
printf("\tdevice size with M = 1000*1000: %11llu MBytes ",(long long unsigned int)bbbig);
if (bbbig > 1000)
- printf("(%llu GB)\n", bbbig/1000);
+ printf("(%llu GB)\n", (long long unsigned int)bbbig/1000);
else
printf("\n");
}