diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-04-24 17:55:01 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-04-24 18:34:46 -0700 |
commit | 470916fb0f856945f2a93c7fd160845b5f659be1 (patch) | |
tree | 18652a5cff68223ec72650afc12e1e2e727c8529 /common/console.c | |
parent | 135f14bf498ab19b6e75efc3a0d18ef7c8a8752d (diff) | |
download | chrome-ec-470916fb0f856945f2a93c7fd160845b5f659be1.tar.gz |
Use console output instead of uart output for console commands
This completes console output cleanup. The remaining calls to
uart_puts() and uart_printf() actually need to be that way.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:7464
TEST=manual
Change-Id: Ib1d6d370d30429017b3d11994894fece75fab6ea
Diffstat (limited to 'common/console.c')
-rw-r--r-- | common/console.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/common/console.c b/common/console.c index 0eff6e3529..4a94588535 100644 --- a/common/console.c +++ b/common/console.c @@ -25,7 +25,11 @@ static char input_buf[80]; /* Current console command line */ static const char *channel_names[CC_CHANNEL_COUNT] = { "command", "charger", + "chipset", + "dma", + "gpio", "hostcmd", + "i2c", "i8042", "keyboard", "keyscan", @@ -36,7 +40,7 @@ static const char *channel_names[CC_CHANNEL_COUNT] = { "system", "task", "usbcharge", - "x86power", + "vboot", }; /*****************************************************************************/ @@ -160,8 +164,8 @@ static int console_init(void) { *input_buf = '\0'; uart_set_console_mode(1); - uart_printf("Console is enabled; type HELP for help.\n"); - uart_puts(PROMPT); + ccprintf("Console is enabled; type HELP for help.\n"); + ccputs(PROMPT); /* TODO: restore channel list from EEPROM */ @@ -183,8 +187,8 @@ static void console_process(void) rv = handle_command(input_buf); if (rv != EC_SUCCESS) - uart_printf("Command returned error %d\n", rv); - uart_puts(PROMPT); + ccprintf("Command returned error %d\n", rv); + ccputs(PROMPT); } } @@ -220,7 +224,7 @@ static int command_help(int argc, char **argv) const char *prev = " "; int i; - uart_puts("Known commands:"); + ccputs("Known commands:"); /* Sort the commands by name */ for (i = 0; i < ncmds; i++) { |