public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-6896] Fix wrong format for fprintf.
@ 2021-01-25 16:49 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-01-25 16:49 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d9ad3b422f00b27d3c1ebef2be5b4510b725d186
commit r11-6896-gd9ad3b422f00b27d3c1ebef2be5b4510b725d186
Author: Martin Liska <mliska@suse.cz>
Date: Mon Jan 25 17:48:32 2021 +0100
Fix wrong format for fprintf.
gcc/ChangeLog:
* value-prof.c (get_nth_most_common_value): Use %s instead
of %qs string.
Diff:
---
gcc/value-prof.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-25 16:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 16:49 [gcc r11-6896] Fix wrong format for fprintf Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).