diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-05-21 10:29:23 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-05-21 14:57:08 -0700 |
commit | b2c4ee6cf88baffa7f69b1551fcda0e468bae216 (patch) | |
tree | 57d84af558f9210220668dc159770b4571aa5710 /common/port80.c | |
parent | 1ac197d566d74b5dfd2abbd57c191e464aa46d8b (diff) | |
download | chrome-ec-b2c4ee6cf88baffa7f69b1551fcda0e468bae216.tar.gz |
Even more debug command cleanup to save space
BUG=none
TEST=(run the commands)
Change-Id: Ibc414ffd594e06dbdce64c51859b6f247bb10d36
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/port80.c')
-rw-r--r-- | common/port80.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/common/port80.c b/common/port80.c index edfdb7c54a..8c5e5924aa 100644 --- a/common/port80.c +++ b/common/port80.c @@ -43,18 +43,16 @@ static int command_port80(int argc, char **argv) * (scrolling) or CR (non-scrolling). */ if (argc > 1 && !strcasecmp(argv[1], "scroll")) { scroll = !scroll; - ccprintf("port80 scrolling %sabled\n", - scroll ? "en" : "dis"); + ccprintf("scroll %sabled\n", scroll ? "en" : "dis"); return EC_SUCCESS; } - /* Technically, if a port 80 write comes in while we're - * printing this, we could print an incorrect history. - * Probably not worth the complexity to work around that. */ - ccputs("Last port 80 writes:"); + /* Technically, if a port 80 write comes in while we're printing this, + * we could print an incorrect history. Probably not worth the + * complexity to work around that. */ for (i = 0; i < HISTORY_LEN; i++) ccprintf(" %02x", history[(h + i) & (HISTORY_LEN - 1)]); - ccputs(" <--newest\n"); + ccputs(" <--new\n"); return EC_SUCCESS; } DECLARE_CONSOLE_COMMAND(port80, command_port80); |