This is an automated email from Gerrit. Karl Palsson ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2765
-- gerrit commit b09d58ad64e3c6403eed68fccff314eb15aafaee Author: Karl Palsson <[email protected]> Date: Wed May 13 12:33:43 2015 +0000 command: log the lowest level, not the parent Instead of repeatedly logging ocd_top_level_command, log each command registered with it's own name. Signed-off-by: Karl Palsson <[email protected]> Change-Id: I7f9fdaa64a2594839ba78523aba7abbee23a94b5 diff --git a/src/helper/command.c b/src/helper/command.c index a0aa9e8..ed22d35 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -363,8 +363,6 @@ static int register_command_handler(struct command_context *cmd_ctx, if (NULL == ocd_name) return JIM_ERR; - LOG_DEBUG("registering '%s'...", ocd_name); - Jim_CmdProc *func = c->handler ? &script_command : &command_unknown; int retval = Jim_CreateCommand(interp, ocd_name, func, c, NULL); free(ocd_name); @@ -391,6 +389,8 @@ struct command *register_command(struct command_context *context, return NULL; const char *name = cr->name; + LOG_DEBUG("registering '%s'...", name); + struct command **head = command_list_for_parent(context, parent); struct command *c = command_find(*head, name); if (NULL != c) { -- ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
