[PATCH 005/18] kdb-expand-kdb-cmderror
[email protected] Thu, 10 Jul 2008 20:58:05 +0000 (UTC)
| Newsgroups | gmane.linux.kernel.debugging |
|---|---|
| Message-ID | <[email protected]> |
Enhance kdb_cmderror diagnostic output. Make kdb_cmderror _always_ display the diagnostic code value. Prior to this patch, it would only display the code when it happened to be negative. (There are positive, non-error diagnostic codes in use, in addition to zero). 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 12:14:15.000000000 -0400 +++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-10 12:27:54.000000000 -0400 @@ -683,7 +683,7 @@ int i; if (diag >= 0) { - kdb_printf("no error detected\n"); + kdb_printf("no error detected (diagnostic is %d)\n", diag); return; } --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.