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/host_event_commands.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/host_event_commands.c')
-rw-r--r-- | common/host_event_commands.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/common/host_event_commands.c b/common/host_event_commands.c index 955f062728..3590966fd2 100644 --- a/common/host_event_commands.c +++ b/common/host_event_commands.c @@ -8,7 +8,6 @@ #include "console.h" #include "host_command.h" #include "lpc.h" -#include "uart.h" #include "util.h" /*****************************************************************************/ @@ -21,39 +20,39 @@ static int command_host_event(int argc, char **argv) char *e; int i = strtoi(argv[2], &e, 0); if (*e) { - uart_puts("Invalid event mask\n"); + ccputs("Invalid event mask\n"); return EC_ERROR_INVAL; } if (!strcasecmp(argv[1], "set")) { - uart_printf("Setting host event mask 0x%08x\n", i); + ccprintf("Setting host event mask 0x%08x\n", i); lpc_set_host_events(i); } else if (!strcasecmp(argv[1], "clear")) { - uart_printf("Clearing host event mask 0x%08x\n", i); + ccprintf("Clearing host event mask 0x%08x\n", i); lpc_clear_host_events(i); } else if (!strcasecmp(argv[1], "smi")) { - uart_printf("Setting SMI mask to 0x%08x\n", i); + ccprintf("Setting SMI mask to 0x%08x\n", i); lpc_set_host_event_mask(LPC_HOST_EVENT_SMI, i); } else if (!strcasecmp(argv[1], "sci")) { - uart_printf("Setting SCI mask to 0x%08x\n", i); + ccprintf("Setting SCI mask to 0x%08x\n", i); lpc_set_host_event_mask(LPC_HOST_EVENT_SCI, i); } else if (!strcasecmp(argv[1], "wake")) { - uart_printf("Setting wake mask to 0x%08x\n", i); + ccprintf("Setting wake mask to 0x%08x\n", i); lpc_set_host_event_mask(LPC_HOST_EVENT_WAKE, i); } else { - uart_puts("Unknown sub-command\n"); + ccputs("Unknown sub-command\n"); return EC_ERROR_INVAL; } } /* Print current SMI/SCI status */ - uart_printf("Raw host events: 0x%08x\n", lpc_get_host_events()); - uart_printf("SMI mask: 0x%08x\n", - lpc_get_host_event_mask(LPC_HOST_EVENT_SMI)); - uart_printf("SCI mask: 0x%08x\n", - lpc_get_host_event_mask(LPC_HOST_EVENT_SCI)); - uart_printf("Wake mask: 0x%08x\n", - lpc_get_host_event_mask(LPC_HOST_EVENT_WAKE)); + ccprintf("Raw host events: 0x%08x\n", lpc_get_host_events()); + ccprintf("SMI mask: 0x%08x\n", + lpc_get_host_event_mask(LPC_HOST_EVENT_SMI)); + ccprintf("SCI mask: 0x%08x\n", + lpc_get_host_event_mask(LPC_HOST_EVENT_SCI)); + ccprintf("Wake mask: 0x%08x\n", + lpc_get_host_event_mask(LPC_HOST_EVENT_WAKE)); return EC_SUCCESS; } DECLARE_CONSOLE_COMMAND(hostevent, command_host_event); |