diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-05-26 02:05:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-05-26 02:05:19 +0000 |
commit | 314c739b07ea860519cabcdffea73db2b0c3a07a (patch) | |
tree | 37d97e241d6fcc6a80fa30c5e968c4899f55c862 | |
parent | 4f93a634673c25b052f9908fe5c43a6235680652 (diff) | |
download | busybox-w32-314c739b07ea860519cabcdffea73db2b0c3a07a.tar.gz busybox-w32-314c739b07ea860519cabcdffea73db2b0c3a07a.tar.bz2 busybox-w32-314c739b07ea860519cabcdffea73db2b0c3a07a.zip |
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...
-rw-r--r-- | miscutils/hdparm.c | 2 |
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) | |||
836 | printf("\tdevice size with M = 1000*1000: %11llu MBytes ",(long long unsigned int)bbbig); | 836 | printf("\tdevice size with M = 1000*1000: %11llu MBytes ",(long long unsigned int)bbbig); |
837 | 837 | ||
838 | if (bbbig > 1000) | 838 | if (bbbig > 1000) |
839 | printf("(%llu GB)\n", bbbig/1000); | 839 | printf("(%llu GB)\n", (long long unsigned int)bbbig/1000); |
840 | else | 840 | else |
841 | printf("\n"); | 841 | printf("\n"); |
842 | } | 842 | } |