From: Mike Frysinger Date: Fri, 26 May 2006 02:05:19 +0000 (-0000) Subject: Yann E. MORIN. writes: X-Git-Tag: 1_2_0~307 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=314c739b07ea860519cabcdffea73db2b0c3a07a;p=oweals%2Fbusybox.git 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... --- 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"); }