summaryrefslogtreecommitdiff
path: root/common/console.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-25 16:53:58 -0700
committerGerrit <chrome-bot@google.com>2012-10-26 09:49:38 -0700
commitcf7f33d158848e11b4cca36533e7fac960ca65a3 (patch)
treeeb1435d4f977e81781d9cf6e3e90a1f965d66af0 /common/console.c
parent7cf92c140d4f540c4704f6d2fa3a4759ed618ec9 (diff)
downloadchrome-ec-cf7f33d158848e11b4cca36533e7fac960ca65a3.tar.gz
Clean up uart buffering code
No functional changes. BUG=chrome-os-partner:15579 BRANCH=none TEST=help version -> prints help on version command Change-Id: I79c4b668513b6037aa6cf3fa1a2a8c0fc9856f41 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36612 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/console.c b/common/console.c
index cd6c17574e..f25e9ec469 100644
--- a/common/console.c
+++ b/common/console.c
@@ -15,7 +15,8 @@
#define PROMPT "> "
-static char input_buf[80]; /* Current console command line */
+/* Current console command line */
+static char input_buf[CONSOLE_INPUT_LINE_SIZE];
/**
* Split a line of input into words.
@@ -138,7 +139,6 @@ static int handle_command(char *input)
static void console_init(void)
{
*input_buf = '\0';
- uart_set_console_mode(1);
ccprintf("Console is enabled; type HELP for help.\n");
ccputs(PROMPT);
}