perf map: Turn some pr_warning() to pr_debug()

Annoying when using it with --stdio/--stdio2, so just turn them debug,
we can get those using -v.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-t3684lkugnf1w4lwcmpj9ivm@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent b1a9e253
...@@ -320,12 +320,11 @@ int map__load(struct map *map) ...@@ -320,12 +320,11 @@ int map__load(struct map *map)
build_id__sprintf(map->dso->build_id, build_id__sprintf(map->dso->build_id,
sizeof(map->dso->build_id), sizeof(map->dso->build_id),
sbuild_id); sbuild_id);
pr_warning("%s with build id %s not found", pr_debug("%s with build id %s not found", name, sbuild_id);
name, sbuild_id);
} else } else
pr_warning("Failed to open %s", name); pr_debug("Failed to open %s", name);
pr_warning(", continuing without symbols\n"); pr_debug(", continuing without symbols\n");
return -1; return -1;
} else if (nr == 0) { } else if (nr == 0) {
#ifdef HAVE_LIBELF_SUPPORT #ifdef HAVE_LIBELF_SUPPORT
...@@ -334,12 +333,11 @@ int map__load(struct map *map) ...@@ -334,12 +333,11 @@ int map__load(struct map *map)
if (len > sizeof(DSO__DELETED) && if (len > sizeof(DSO__DELETED) &&
strcmp(name + real_len + 1, DSO__DELETED) == 0) { strcmp(name + real_len + 1, DSO__DELETED) == 0) {
pr_warning("%.*s was updated (is prelink enabled?). " pr_debug("%.*s was updated (is prelink enabled?). "
"Restart the long running apps that use it!\n", "Restart the long running apps that use it!\n",
(int)real_len, name); (int)real_len, name);
} else { } else {
pr_warning("no symbols found in %s, maybe install " pr_debug("no symbols found in %s, maybe install a debug package?\n", name);
"a debug package?\n", name);
} }
#endif #endif
return -1; return -1;
...@@ -701,8 +699,7 @@ static int maps__fixup_overlappings(struct maps *maps, struct map *map, FILE *fp ...@@ -701,8 +699,7 @@ static int maps__fixup_overlappings(struct maps *maps, struct map *map, FILE *fp
if (verbose >= 2) { if (verbose >= 2) {
if (use_browser) { if (use_browser) {
pr_warning("overlapping maps in %s " pr_debug("overlapping maps in %s (disable tui for more info)\n",
"(disable tui for more info)\n",
map->dso->name); map->dso->name);
} else { } else {
fputs("overlapping maps:\n", fp); fputs("overlapping maps:\n", fp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment