summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2020-05-27 14:49:44 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-09 00:53:28 +0000
commit3e238583a45c036fed3aa62a8c82e47b6601e028 (patch)
treeb8edcba421511ef29d03facfedf29bf02f576932
parent84b959ca35604fe6d9d9d8e2b4088d1900f43ba0 (diff)
downloadchrome-ec-3e238583a45c036fed3aa62a8c82e47b6601e028.tar.gz
power: Don't print timestamp for powerinfo command
This patch makes powerinfo command print the result without a timestamp like other console commands. This shouldn't break FAFT. If it does, FAFT should be fixed. BUG=none BRANCH=none TEST=buildall Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I90f032dc2d079d9d674489d2236b05f6051e574f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2219122 Reviewed-by: Craig Hesling <hesling@chromium.org>
-rw-r--r--power/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/power/common.c b/power/common.c
index bdad26842b..ea5bad51f8 100644
--- a/power/common.c
+++ b/power/common.c
@@ -768,7 +768,7 @@ static int command_powerinfo(int argc, char **argv)
* Print power state in same format as state machine. This is
* used by FAFT tests, so must match exactly.
*/
- ccprints("power state %d = %s, in 0x%04x",
+ ccprintf("power state %d = %s, in 0x%04x\n",
state, state_names[state], in_signals);
return EC_SUCCESS;