← Commit list

314c739b0

Mike Frysinger
Mike Frysinger
2006-05-26
SOURCE BUG Duration: 57s

Subject

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...

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/hdparm.c+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);
if (bbbig > 1000)
- printf("(%llu GB)\n", bbbig/1000);
+ printf("(%llu GB)\n", (long long unsigned int)bbbig/1000);
else
printf("\n");
}