Allow debug mode to override terse mode

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-12-01 22:36:16 +01:00
1 parent fa3a97366c
commit a5c5a5c644
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -266,6 +266,10 @@ static void cb(uev_t *w, void *UNUSED(arg), int UNUSED(events))
case INIT_CMD_DEBUG: case INIT_CMD_DEBUG:
debug = !debug; debug = !debug;
if (debug)
verbose = 1;
else
verbose = quiet ? 0 : VERBOSE_MODE;
break; break;
case INIT_CMD_RELOAD: /* 'init q' and 'initctl reload' */ case INIT_CMD_RELOAD: /* 'init q' and 'initctl reload' */
+1 -1
View File
@@ -218,7 +218,7 @@ int main(int argc, char* argv[])
tty_runlevel(runlevel); tty_runlevel(runlevel);
/* Disable verbose mode, if selected */ /* Disable verbose mode, if selected */
if (quiet) if (quiet && !debug)
verbose = 0; verbose = 0;
/* Start new initctl API responder */ /* Start new initctl API responder */