summaryrefslogtreecommitdiff
path: root/common/console.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-05-21 09:59:01 -0700
committerRandall Spangler <rspangler@chromium.org>2012-05-21 10:21:10 -0700
commiteac46a9194a211b97e4fb5a77ed8320f17dd7a8c (patch)
treea62f2850af28d617999227f5d31476bdad7680b1 /common/console.c
parent01e94792e7436e89e55f043982e9446e0759bf25 (diff)
downloadchrome-ec-eac46a9194a211b97e4fb5a77ed8320f17dd7a8c.tar.gz
More debug command cleanup to save space
(saves another 1.5KB) BUG=none TEST=(run the commands) Change-Id: Id3ca58528fa68a4cec606edf2b98b9af38ac228f Signed-off-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c
index 8f21418f43..16a17fade7 100644
--- a/common/console.c
+++ b/common/console.c
@@ -194,7 +194,9 @@ static void console_process(void)
uart_gets(input_buf, sizeof(input_buf));
rv = handle_command(input_buf);
- if (rv != EC_SUCCESS)
+ if (rv == EC_ERROR_INVAL)
+ ccputs("Command usage/param invalid.\n");
+ else if (rv != EC_SUCCESS)
ccprintf("Command returned error %d\n", rv);
ccputs(PROMPT);
}