diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-05-18 16:59:26 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-05-21 09:17:51 -0700 |
commit | 01e94792e7436e89e55f043982e9446e0759bf25 (patch) | |
tree | 8e8dc705a825391449041b81ec061d767231fb91 /chip/lm4/peci.c | |
parent | b1bb8314bd852dea40bc7514486ce4e781e14f88 (diff) | |
download | chrome-ec-01e94792e7436e89e55f043982e9446e0759bf25.tar.gz |
Clean up debug commands to use less space
BUG=none
TEST=(run the commands)
Change-Id: I6ed4aee169311825190bcc386b86cdc32ba0866a
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/lm4/peci.c')
-rw-r--r-- | chip/lm4/peci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chip/lm4/peci.c b/chip/lm4/peci.c index 6bbdaa832c..88f3f95b6e 100644 --- a/chip/lm4/peci.c +++ b/chip/lm4/peci.c @@ -101,11 +101,10 @@ static int command_peci_temp(int argc, char **argv) { int t = peci_get_cpu_temp(); if (t == -1) { - ccputs("Error reading CPU temperature via PECI\n"); - ccprintf("Error code = 0x%04x\n", LM4_PECI_M0D0 & 0xffff); + ccprintf("PECI error 0x%04x\n", LM4_PECI_M0D0 & 0xffff); return EC_ERROR_UNKNOWN; } - ccprintf("Current CPU temperature = %d K = %d C\n", t, t - 273); + ccprintf("CPU temp = %d K = %d C\n", t, t - 273); return EC_SUCCESS; } DECLARE_CONSOLE_COMMAND(pecitemp, command_peci_temp); |