diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 02:05:19 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 02:05:19 +0000 |
commit | 8c253eef42c785551ed063b5ac6f8efd3ae8e59c (patch) | |
tree | 37d97e241d6fcc6a80fa30c5e968c4899f55c862 | |
parent | 0f829a98aa03bf5ddb3c5e0a803d49d7ed2a2249 (diff) | |
download | busybox-w32-8c253eef42c785551ed063b5ac6f8efd3ae8e59c.tar.gz busybox-w32-8c253eef42c785551ed063b5ac6f8efd3ae8e59c.tar.bz2 busybox-w32-8c253eef42c785551ed063b5ac6f8efd3ae8e59c.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...
git-svn-id: svn://busybox.net/trunk/busybox@15180 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 | } |