OSDN Git Service

perf stat: Add missing newline in pr_err messages
authorYang Jihong <yangjihong1@huawei.com>
Wed, 14 Jun 2023 02:15:05 +0000 (02:15 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 20 Jun 2023 22:55:13 +0000 (15:55 -0700)
commitdb1f5f1038a2df67f549e2657f56327e28127c27
treeb48070222fafc688fa1e6cdcc026ba8be68a4388
parent82fe2e45cdb00de4fa648050ae33bdadf9b3294a
perf stat: Add missing newline in pr_err messages

The newline is missing for error messages in add_default_attributes()

Before:

  # perf stat --topdown
  Topdown requested but the topdown metric groups aren't present.
  (See perf list the metric groups have names like TopdownL1)#

After:

  # perf stat --topdown
  Topdown requested but the topdown metric groups aren't present.
  (See perf list the metric groups have names like TopdownL1)
  #

In addition, perf_stat_init_aggr_mode() and perf_stat_init_aggr_mode_file()
have the same problem, fixed by the way.

Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Acked-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@arm.com>
Link: https://lore.kernel.org/r/20230614021505.59856-1-yangjihong1@huawei.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-stat.c