From d9ad3b422f00b27d3c1ebef2be5b4510b725d186 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 25 Jan 2021 17:48:32 +0100 Subject: [PATCH] Fix wrong format for fprintf. gcc/ChangeLog: * value-prof.c (get_nth_most_common_value): Use %s instead of %qs string. --- 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; } -- 2.30.2