[PATCH 011/18] kdb-suppress-boottime-msgs
[email protected] Thu, 10 Jul 2008 20:57:04 +0000 (UTC)
| Newsgroups | gmane.linux.kernel.debugging |
|---|---|
| Message-ID | <[email protected]> |
Suppress KDB boottime INFO messages if a quiet boot was asked for. Make KDB honor the console_loglevel when printing out informative messages at boot time. This makes a fully quiet bootup sequence possible. Signed-off-by: Joe Korty <[email protected]> Index: 2.6.26-rc9/kdb/kdbmain.c =================================================================== --- 2.6.26-rc9.orig/kdb/kdbmain.c 2008-07-10 13:31:28.000000000 -0400 +++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-10 13:32:05.000000000 -0400 @@ -4056,10 +4056,12 @@ int i, diag; for (i = 0; kdb_cmds[i]; ++i) { if (!defcmd_in_progress) - kdb_printf("kdb_cmd[%d]: %s", i, kdb_cmds[i]); + if (console_loglevel >= 6 /* KERN_INFO */) + kdb_printf("kdb_cmd[%d]: %s", i, kdb_cmds[i]); diag = kdb_parse(kdb_cmds[i]); if (diag) - kdb_printf("command failed, kdb diag %d\n", diag); + kdb_printf("kdb command %s failed, kdb diag %d\n", + kdb_cmds[i], diag); } if (defcmd_in_progress) { kdb_printf("Incomplete 'defcmd' set, forcing endefcmd\n"); --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.