From: Laura Abbott Date: Mon, 28 Sep 2015 22:39:13 +0000 (-0700) Subject: depmod: Remove unprinted debug messages X-Git-Tag: v22~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50f43ce2f66f02cec44968cac5aa5119ce5cbb81;p=thirdparty%2Fkmod.git depmod: Remove unprinted debug messages 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. --- diff --git a/tools/depmod.c b/tools/depmod.c index 2a08b6e2..348735f9 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -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; }