Fix wording of some warnings

pwarn() prints "Warning" itsself, therefore it doesn't make sense to
include/repeat that word in the actual warning text.
This commit is contained in:
Christian Boltz 2020-10-11 12:22:23 +02:00
parent ec19ff9f72
commit 01f5954b5c
Failed to generate hash of commit
2 changed files with 2 additions and 2 deletions

View file

@ -1299,7 +1299,7 @@ static void setup_parallel_compile(void)
jobs_max = compute_jobs(maxn, jobs_max); jobs_max = compute_jobs(maxn, jobs_max);
if (jobs > jobs_max) { if (jobs > jobs_max) {
pwarn(WARN_JOBS, "%s: Warning capping number of jobs to %ld * # of cpus == '%ld'", pwarn(WARN_JOBS, "%s: Capping number of jobs to %ld * # of cpus == '%ld'",
progname, jobs_max, jobs); progname, jobs_max, jobs);
jobs = jobs_max; jobs = jobs_max;
} else if (jobs < jobs_max) } else if (jobs < jobs_max)

View file

@ -179,7 +179,7 @@ void install_cache(const char *cachetmpname, const char *cachename)
} }
if (rename(cachetmpname, cachename) < 0) { if (rename(cachetmpname, cachename) < 0) {
pwarn(WARN_CACHE, "Warning failed to write cache: %s\n", cachename); pwarn(WARN_CACHE, "Failed to write cache: %s\n", cachename);
unlink(cachetmpname); unlink(cachetmpname);
} }
else if (show_cache) { else if (show_cache) {