← Commit list

7250915d7

Rob Landley
Rob Landley
2006-08-06
SOURCE BUG Duration: 32s

Subject

Make a warning go away on 64-bit systems.

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 →

util-linux/readprofile.c+2 -2
@@ -47,7 +47,7 @@ int readprofile_main(int argc, char **argv)
int proFd;
const char *mapFile, *proFile, *mult=0;
unsigned long len=0, indx=1;
- unsigned long long add0=0;
+ uint64_t add0=0;
unsigned int step;
unsigned int *buf, total, fn_len;
unsigned long long fn_add, next_add; /* current and next address */
@@ -223,7 +223,7 @@ int readprofile_main(int argc, char **argv)
printf ("%s:\n", fn_name);
header_printed = 1;
}
- printf ("\t%llx\t%u\n", (indx - 1)*step + add0, buf[indx]);
+ printf ("\t%"PRIx64"\t%u\n", (indx - 1)*step + add0, buf[indx]);
}
this += buf[indx++];
}