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 --- board/fizz/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/fizz/board.c') diff --git a/board/fizz/board.c b/board/fizz/board.c index 4e51c9851c..70ee2a70c7 100644 --- a/board/fizz/board.c +++ b/board/fizz/board.c @@ -818,7 +818,7 @@ int fan_percent_to_rpm(int fan, int pct) if (fan_table[current_level].rpm != fan_get_rpm_target(FAN_CH(fan))) - cprintf(CC_THERMAL, "[%T Setting fan RPM to %d]\n", + cprints(CC_THERMAL, "Setting fan RPM to %d", fan_table[current_level].rpm); return fan_table[current_level].rpm; -- cgit v1.2.1