helper/command: silent debug msg on command register/unregister
Commite216186fab
("helper/command: register full-name commands in jim") and commita7d68878e4
("helper/command: unregister commands through their full-name") introduce a LOG_DEBUG() message each for command registration and unregistration. The messages above are quite noisy and pollute the log when debug_level is 3 or higher. They can be useful to debug the command registration logic, but for the other debug activities on OpenOCD are just noisy. Already commita03ac1ba30
("helper/command: disable logging of registered commands [RFC]") was merged to silent the first case that is now back with additional logs. Silent both log messages. Use 'if (false)' to silent them, making easy to re-enable it when or if someone needs it. Change-Id: Id8a067e60e822d4ecbddcb036d081298f7e6181f Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6220 Tested-by: jenkins
This commit is contained in:
parent
909d45e35c
commit
0c5ca348ec
|
@ -343,6 +343,7 @@ static struct command *register_command(struct command_context *context,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (false) /* too noisy with debug_level 3 */
|
||||
LOG_DEBUG("registering '%s'...", full_name);
|
||||
int retval = Jim_CreateCommand(context->interp, full_name,
|
||||
jim_command_dispatch, c, command_free);
|
||||
|
@ -441,6 +442,7 @@ int unregister_commands_match(struct command_context *cmd_ctx, const char *forma
|
|||
Jim_DecrRefCount(interp, elem);
|
||||
continue;
|
||||
}
|
||||
if (false) /* too noisy with debug_level 3 */
|
||||
LOG_DEBUG("delete command \"%s\"", name);
|
||||
#if JIM_VERSION >= 80
|
||||
Jim_DeleteCommand(interp, elem);
|
||||
|
|
Loading…
Reference in New Issue