This commit is contained in:
vanhauser-thc
2023-07-10 17:43:09 +02:00
parent e10e0e01e9
commit b547a6ab0d
2 changed files with 2 additions and 2 deletions

View File

@ -425,7 +425,7 @@ BEGIN {
cmd = "stat --version 2>/dev/null" cmd = "stat --version 2>/dev/null"
cmd | getline statversion cmd | getline statversion
close(cmd) close(cmd)
if (statversion ~ /GNU coreutils/) { if (statversion ~ /GNU coreutils/ || statversion ~ /BusyBox/) {
stat_format = "-c '%s %n'" # GNU stat_format = "-c '%s %n'" # GNU
} else { } else {
stat_format = "-f '%z %N'" # *BSD, MacOS stat_format = "-f '%z %N'" # *BSD, MacOS

View File

@ -1081,7 +1081,7 @@ bool ModuleSanitizerCoverageLTO::instrumentModule(
} }
if (!be_quiet) if (!be_quiet)
printf("AUTODICTIONARY: %lu string%s found\n", count, printf("AUTODICTIONARY: %zu string%s found\n", count,
count == 1 ? "" : "s"); count == 1 ? "" : "s");
if (count) { if (count) {