From: Spencer O. <nt...@us...> - 2010-02-04 12:14:47
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 709f08f17ad5128b86966365510dbe8f67736304 (commit) from 8b049fdba52459d54f63d39ae7b30abeef911e2b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 709f08f17ad5128b86966365510dbe8f67736304 Author: Spencer Oliver <nt...@us...> Date: Thu Feb 4 10:33:33 2010 +0000 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/ope...@li.../msg11152.html Signed-off-by: Spencer Oliver <nt...@us...> 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/ope...@li.../msg11152.html */ + LOG_DEBUG("command '%s' is already registered in '%s' context", name, parent ? parent->name : "<global>"); return c; } ----------------------------------------------------------------------- Summary of changes: src/helper/command.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) hooks/post-receive -- Main OpenOCD repository |