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.

Reply via email to