modprobe: set log prio to 0 if user passed -q arg
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Mar 2012 04:11:10 +0000 (01:11 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Mar 2012 04:16:54 +0000 (01:16 -0300)
tools/kmod-modprobe.c

index 9be1350..4760682 100644 (file)
@@ -923,7 +923,7 @@ static int do_modprobe(int argc, char **orig_argv)
                        break;
                case 'q':
                        env_modprobe_options_append("-q");
-                       verbose--;
+                       verbose = LOG_EMERG;
                        break;
                case 'v':
                        env_modprobe_options_append("-v");