[PATCH 1/1] perf symbols: Show messages about module loading only if verbose >= 1

From: Arnaldo Carvalho de Melo
Date: Sun Nov 22 2009 - 10:22:02 EST


From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

Suggested-by: Ingo Molnar <mingo@xxxxxxx>
Cc: FrÃdÃric Weisbecker <fweisbec@xxxxxxxxx>
Cc: Mike Galbraith <efault@xxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/util/symbol.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index f56158f..74b5b8a 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1189,7 +1189,7 @@ static int dsos__set_modules_path_dir(char *dirname)
DIR *dir = opendir(dirname);

if (!dir) {
- pr_err("%s: cannot open %s dir\n", __func__, dirname);
+ pr_debug("%s: cannot open %s dir\n", __func__, dirname);
return -1;
}

@@ -1500,8 +1500,8 @@ int kernel_maps__init(bool use_modules)
return -1;

if (use_modules && kernel_maps__create_module_maps() < 0)
- pr_warning("Failed to load list of modules in use, "
- "continuing...\n");
+ pr_debug("Failed to load list of modules in use, "
+ "continuing...\n");
/*
* Now that we have all the maps created, just set the ->end of them:
*/
--
1.6.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/