diff options
author | Aseda Aboagye <aaboagye@google.com> | 2016-02-23 14:43:41 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-02-23 22:40:17 -0800 |
commit | 4b35daffd1a2a77922b09dcb1e20457fc20da8e7 (patch) | |
tree | 15a85b8c6d162cc4ba38acefa7aaf18ba233450a | |
parent | 237406c5b12ed9934fc6eab7d24f30ba6e70fdce (diff) | |
download | chrome-ec-4b35daffd1a2a77922b09dcb1e20457fc20da8e7.tar.gz |
common: console: Change console_init() string.
For enhanced EC images, change the string telling the user that the
console is enabled. This is such that EC-3PO can distinguish between
non-enhanced ECs and enhanced ECs during EC boot.
BUG=chromium:588611
BRANCH=None
TEST=Build for chell with CONFIG_EXPERIMENTAL_CONSOLE and verify that
the new string is printed.
TEST=Repeat above test but without the config option and verify that the
old string is printed.
TEST=make -j buildall tests
Change-Id: Ic8ed0a028ecb701b999fa6c6a376704f375dbc62
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/329161
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | common/console.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c index 3c23161ee6..7cb89aed97 100644 --- a/common/console.c +++ b/common/console.c @@ -264,7 +264,11 @@ command_has_error: static void console_init(void) { *input_buf = '\0'; +#ifdef CONFIG_EXPERIMENTAL_CONSOLE + ccprintf("Enhanced Console is enabled (v1.0.0); type HELP for help.\n"); +#else ccprintf("Console is enabled; type HELP for help.\n"); +#endif /* defined(CONFIG_EXPERIMENTAL_CONSOLE) */ ccputs(PROMPT); } |