From: Martin Liska Date: Mon, 25 Jan 2021 16:48:32 +0000 (+0100) Subject: Fix wrong format for fprintf. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9ad3b422f00b27d3c1ebef2be5b4510b725d186;p=gcc.git Fix wrong format for fprintf. gcc/ChangeLog: * value-prof.c (get_nth_most_common_value): Use %s instead of %qs string. --- diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 3e899a39b84..42748771192 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -777,7 +777,7 @@ get_nth_most_common_value (gimple *stmt, const char *counter_type, && flag_profile_reproducible == PROFILE_REPRODUCIBILITY_PARALLEL_RUNS) { if (dump_file) - fprintf (dump_file, "Histogram value dropped in %qs mode", + fprintf (dump_file, "Histogram value dropped in '%s' mode\n", "-fprofile-reproducible=parallel-runs"); return false; } @@ -785,7 +785,7 @@ get_nth_most_common_value (gimple *stmt, const char *counter_type, && flag_profile_reproducible == PROFILE_REPRODUCIBILITY_MULTITHREADED) { if (dump_file) - fprintf (dump_file, "Histogram value dropped in %qs mode", + fprintf (dump_file, "Histogram value dropped in '%s' mode\n", "-fprofile-reproducible=multithreaded"); return false; }