kdb
[Top] [All Lists]

[PATCH 006/18] kdb-expand-dupl-cmd-error-msg

To: undisclosed-recipients:;
Subject: [PATCH 006/18] kdb-expand-dupl-cmd-error-msg
From: quilt@xxxxxxxxxxxxxxxx
Date: Thu Jul 10 16:25:03 EDT 2008
Resent-date: Thu, 10 Jul 2008 16:53:35 -0400
Resent-from: joe.korty@xxxxxxxx
Resent-message-id: <200807102053.m6AKrZ5u031212@xxxxxxxxxxxxxx>
Resent-to: kdb@xxxxxxxxxxx
Sender: kdb-bounce@xxxxxxxxxxx
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 <joe.korty@xxxxxxxx>

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.
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 006/18] kdb-expand-dupl-cmd-error-msg, quilt <=