Commit 6f04bc15 authored by Antonio Borneo's avatar Antonio Borneo Committed by Tomas Vanek
Browse files

helper/command: log an error for commands without usage

Every command has been fixed with proper usage field.
Change LOG_DEBUG with LOG_ERROR so a developer will get a visible
alert for missing usage field when adds a new command.

Change-Id: I077c3745fd6265aded8e54b3f9d202d4d6516966
Signed-off-by: default avatarAntonio Borneo <>

Tested-by: jenkins
Reviewed-by: default avatarTomas Vanek <>
parent 38d053d1
......@@ -316,7 +316,7 @@ static struct command *command_new(struct command_context *cmd_ctx,
* arguments.
if ((cr->jim_handler == NULL) && (cr->usage == NULL)) {
LOG_DEBUG("BUG: command '%s%s%s' does not have the "
LOG_ERROR("BUG: command '%s%s%s' does not have the "
"'.usage' field filled out",
parent && parent->name ? parent->name : "",
parent && parent->name ? " " : "",
Supports Markdown
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