Yann E. MORIN. writes:
authorMike Frysinger <vapier@gentoo.org>
Fri, 26 May 2006 02:05:19 +0000 (02:05 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 26 May 2006 02:05:19 +0000 (02:05 -0000)
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...

miscutils/hdparm.c

index 4bca1222a694d3cc5a017e76f573910112780b0e..6a8149841c681fe27d7113c0f6b5d7938f5a05ae 100644 (file)
@@ -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");
        }