From: Ian Rogers Date: Fri, 15 Oct 2021 17:21:30 +0000 (-0700) Subject: perf metric: Switch fprintf() to pr_err() X-Git-Tag: v5.16-rc1~93^2~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e068c25671accfe762524f01ee24dff750849623;p=thirdparty%2Fkernel%2Flinux.git perf metric: Switch fprintf() to pr_err() There's no clear reason for the inconsistency that stems from the initial commit. Signed-off-by: Ian Rogers Acked-by: Andi Kleen Cc: Adrian Hunter Cc: Alexander Antonov Cc: Alexander Shishkin Cc: Andrew Kilroy Cc: Andrew Morton Cc: Changbin Du Cc: Denys Zagorui Cc: Fabian Hemmer Cc: Felix Fietkau Cc: Heiko Carstens Cc: Ingo Molnar Cc: Jacob Keller Cc: Jiapeng Chong Cc: Jin Yao Cc: Jiri Olsa Cc: Joakim Zhang Cc: John Garry Cc: Kajol Jain Cc: Kan Liang Cc: Kees Kook Cc: Mark Rutland Cc: Namhyung Kim Cc: Nicholas Fraser Cc: Nick Desaulniers Cc: Paul Clarke Cc: Peter Zijlstra Cc: Riccardo Mancini Cc: Sami Tolvanen Cc: ShihCheng Tu Cc: Song Liu Cc: Stephane Eranian Cc: Sumanth Korikkar Cc: Thomas Richter Cc: Wan Jiabing Cc: Zhen Lei Link: https://lore.kernel.org/r/20211015172132.1162559-20-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index 988f9e95dded6..b6ba1317973ee 100644 --- a/tools/perf/util/metricgroup.c +++ b/tools/perf/util/metricgroup.c @@ -1172,7 +1172,7 @@ static int metricgroup__add_metric_list(const char *list, bool metric_no_group, ret = metricgroup__add_metric(p, metric_no_group, metric_list, map); if (ret == -EINVAL) - fprintf(stderr, "Cannot find metric or group `%s'\n", p); + pr_err("Cannot find metric or group `%s'\n", p); if (ret) break;