diff options
author | philipchen <philipchen@google.com> | 2017-03-20 12:24:05 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-03-20 19:30:15 -0700 |
commit | e78307e2424d182814775a24b6fea78278475a91 (patch) | |
tree | 446683854dee8175ebac6766d51e2ed710295d30 /common | |
parent | 253366b3afe7a1c26b18fa8ae6fb4f4e07a4e7c9 (diff) | |
download | chrome-ec-e78307e2424d182814775a24b6fea78278475a91.tar.gz |
console: ensure "Console is enabled" string is intact
BUG=chromium:687228
BRANCH=none
TEST=boot 10 times on kevin, and
see the complete string "Console is enabled..."
Change-Id: I9bb7358eb0a3d8172b5584329b9837cf62def635
Reviewed-on: https://chromium-review.googlesource.com/457421
Commit-Ready: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/console.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c index a935028e30..402befc622 100644 --- a/common/console.c +++ b/common/console.c @@ -269,11 +269,13 @@ command_has_error: static void console_init(void) { *input_buf = '\0'; + cflush(); #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) */ + cflush(); ccputs(PROMPT); } |