From cb59e6d1dc263a35c9f1f97e042aef8dce71a3a3 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Tue, 16 Jul 2019 03:23:59 -0600 Subject: cleanup: refactor CPRINTF("[%T ...]\n") to CPRINTS Looking at where the non-standard %T printf modifier is used in EC codebase, the majority is cases where CPRINTS could have been used instead of CPRINTF. This is a somewhat-mechanical refactor of these cases, which will make implementing a standard printf easier. BUG=chromium:984041 BRANCH=none TEST=buildall Change-Id: I75ea0be261bfbfa50fb850a0a37fe2ca6ab67cb9 Signed-off-by: Jack Rosenthal Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1703128 Reviewed-by: Evan Green --- common/battery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/battery.c') diff --git a/common/battery.c b/common/battery.c index 3b8f0e8cd6..7f00e186ec 100644 --- a/common/battery.c +++ b/common/battery.c @@ -305,9 +305,9 @@ static void pending_cutoff_deferred(void) rv = board_cut_off_battery(); if (rv == EC_RES_SUCCESS) - CPRINTF("[%T Battery cut off succeeded.]\n"); + CPRINTS("Battery cut off succeeded."); else - CPRINTF("[%T Battery cut off failed!]\n"); + CPRINTS("Battery cut off failed!"); } DECLARE_DEFERRED(pending_cutoff_deferred); @@ -373,7 +373,7 @@ static int command_cutoff(int argc, char **argv) rv = board_cut_off_battery(); if (rv == EC_RES_SUCCESS) { - ccprintf("[%T Battery cut off]\n"); + ccprints("Battery cut off"); battery_cutoff_state = BATTERY_CUTOFF_STATE_CUT_OFF; return EC_SUCCESS; } -- cgit v1.2.1