← Commit list

465874f3a

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2006-04-05
SOURCE BUG Duration: 14s

Subject

- use proper macros to print intmax_t. PRIuMAX and PRIxMAX are defined in inttypes depending on the wordsize.

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 →

coreutils/stat.c+3 -3
@@ -466,7 +466,7 @@ static int do_stat(char const *filename, char const *format)
print_it(format, filename, print_stat, &statbuf);
#else
if (flags & OPT_TERSE) {
- printf("%s %lu %lu %lx %lu %lu %lx %lu %lu %lx %lx %lu %lu %lu %lu\n",
+ printf("%s %"PRIuMAX" %"PRIuMAX" %lx %lu %lu %"PRIxMAX" %"PRIuMAX" %lu %lx %lx %lu %lu %lu %lu\n",
filename,
(uintmax_t) (statbuf.st_size),
(uintmax_t) statbuf.st_blocks,
@@ -500,8 +500,8 @@ static int do_stat(char const *filename, char const *format)
else
printf(" File: \"%s\"\n", filename);
- printf(" Size: %-10lu\tBlocks: %-10lu IO Block: %-6lu %s\n"
- "Device: %lxh/%lud\tInode: %-10lu Links: %-5lu",
+ printf(" Size: %-10"PRIuMAX"\tBlocks: %-10"PRIuMAX" IO Block: %-6lu %s\n"
+ "Device: %"PRIxMAX"h/%"PRIuMAX"d\tInode: %-10"PRIuMAX" Links: %-5lu",
(uintmax_t) (statbuf.st_size),
(uintmax_t) statbuf.st_blocks,
(unsigned long int) statbuf.st_blksize,