Commit 709f08f1 authored by Spencer Oliver's avatar Spencer Oliver
Browse files

CMD: duplicate cmd error msg

When registering cmds we report duplicate attempts to register a cmd
Some situations need this, such as when registering dual flash banks.

Signed-off-by: default avatarSpencer Oliver <>
parent 8b049fdb
......@@ -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.
* */
LOG_DEBUG("command '%s' is already registered in '%s' context",
name, parent ? parent->name : "<global>");
return c;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment