summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorMike Frysinger2006-05-26 02:05:19 +0000
committerMike Frysinger2006-05-26 02:05:19 +0000
commit314c739b07ea860519cabcdffea73db2b0c3a07a (patch)
tree37d97e241d6fcc6a80fa30c5e968c4899f55c862 /miscutils
parent4f93a634673c25b052f9908fe5c43a6235680652 (diff)
downloadbusybox-314c739b07ea860519cabcdffea73db2b0c3a07a.zip
busybox-314c739b07ea860519cabcdffea73db2b0c3a07a.tar.gz
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 4bca122..6a81498 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");
}