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>
This commit is contained in:
Aseda Aboagye
2016-02-23 14:43:41 -08:00
committed by chrome-bot
parent 237406c5b1
commit 4b35daffd1

View File

@@ -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);
}