Expand the KDB 'duplicate command' error message.
Make more informative the error message that KDB prints out
when an attempt is made to register a new KDB command that
has the same name as an already-registered KDB command.
The new message prints the name, etc of the offending
command. This makes it easier to find the culprit.
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:30:55.000000000 -0400
+++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-10 13:27:05.000000000 -0400
@@ -3760,8 +3760,8 @@
*/
for (i=0, kp=kdb_commands; i<kdb_max_commands; i++, kp++) {
if (kp->cmd_name && (strcmp(kp->cmd_name, cmd)==0)) {
- kdb_printf("Duplicate kdb command registered: '%s'\n",
- cmd);
+ kdb_printf("Duplicate kdb command registered: "
+ "%s, func %p help %s\n", cmd, func, help);
return 1;
}
}
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.