]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
depmod: Remove unprinted debug messages
authorLaura Abbott <labbott@fedoraproject.org>
Mon, 28 Sep 2015 22:39:13 +0000 (15:39 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 30 Sep 2015 18:17:03 +0000 (15:17 -0300)
In between the start of the program and the call to log_setup_kmod_log,
the only messages that will be printed are the ones at or above the
global default level. Debug messages in this range will never be printed
so remove them.

tools/depmod.c

index 2a08b6e2f48b97406bfa083b9b51d4b4063370a6..348735f9aa239e3be9a3f82a3a1924b7d2f7f1d1 100644 (file)
@@ -2498,11 +2498,8 @@ static int do_depmod(int argc, char *argv[])
                if (out == stdout)
                        goto done;
                /* ignore up-to-date errors (< 0) */
-               if (depfile_up_to_date(cfg.dirname) == 1) {
-                       DBG("%s/modules.dep is up to date!\n", cfg.dirname);
+               if (depfile_up_to_date(cfg.dirname) == 1)
                        goto done;
-               }
-               DBG("%s/modules.dep is outdated, do -a\n", cfg.dirname);
                all = 1;
        }