https://sourceforge.net/apps/trac/openocd/ticket/3 and http://www.mail-archive.com/[email protected]/msg11152.html
Cheers Spen
>From 709f08f17ad5128b86966365510dbe8f67736304 Mon Sep 17 00:00:00 2001 From: Spencer Oliver <[email protected]> Date: Thu, 4 Feb 2010 10:33:33 +0000 Subject: [PATCH] CMD: duplicate cmd error msg When registering cmds we report duplicate attempts to register a cmd as a LOG_ERROR. Some situations need this, such as when registering dual flash banks. http://www.mail-archive.com/[email protected]/msg11152.html Signed-off-by: Spencer Oliver <[email protected]> --- src/helper/command.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/helper/command.c b/src/helper/command.c index ebd9aa6..3625508 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -375,7 +375,10 @@ struct command* register_command(struct command_context *context, struct command *c = command_find(*head, name); if (NULL != c) { - LOG_ERROR("command '%s' is already registered in '%s' context", + /* TODO: originally we treated attempting to register a cmd twice as an error + * Sometimes we need this behaviour, such as with flash banks. + * http://www.mail-archive.com/[email protected]/msg11152.html */ + LOG_DEBUG("command '%s' is already registered in '%s' context", name, parent ? parent->name : "<global>"); return c; } -- 1.6.5.1.1367.gcd48
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
