[PATCH 005/18] kdb-expand-kdb-cmderror

quilt at tsunami.ccur.com quilt at tsunami.ccur.com
Thu Jul 10 13:25:03 PDT 2008


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 <joe.korty at ccur.com>

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.


More information about the kdb mailing list