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...
This commit is contained in:
1 parent
4f93a63467
commit
314c739b07
1 file changed
+1
-1
+1
-1
@@ -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);
|
printf("\tdevice size with M = 1000*1000: %11llu MBytes ",(long long unsigned int)bbbig);
|
||||||
|
|
||||||
if (bbbig > 1000)
|
if (bbbig > 1000)
|
||||||
printf("(%llu GB)\n", bbbig/1000);
|
printf("(%llu GB)\n", (long long unsigned int)bbbig/1000);
|
||||||
else
|
else
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user