perf symbols: Show messages about module loading only if verbose >= 1
authorArnaldo Carvalho de Melo <[email protected]>
Sun, 22 Nov 2009 15:21:41 +0000 (13:21 -0200)
committerIngo Molnar <[email protected]>
Sun, 22 Nov 2009 17:54:24 +0000 (18:54 +0100)
Suggested-by: Ingo Molnar <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <1258903301[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
tools/perf/util/symbol.c

index f56158fb4dc9d09d68281b33f733473688bc56ca..74b5b8a1695101b0663fb5995a611b332f5ab337 100644 (file)
@@ -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:
         */