From 7200037dfc674977bffc3d58a15547d97f3ef681 Mon Sep 17 00:00:00 2001 From: Evan Green Date: Mon, 23 Sep 2019 13:19:18 -0700 Subject: printf: Fix formatting errors This change fixes the printf formatting errors found by the compile-time prinf format checker. The errors fall into a few categories: 1. Incorrect size specifier (missing or extra l). 2. Missing or extra arguments. 3. Bad line splitting. BUG=chromium:984041 TEST=make -j buildall BRANCH=none Change-Id: I5618097a581210b9fcbfc81560dec050ae30b61c Signed-off-by: Evan Green Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1819653 Reviewed-by: Jack Rosenthal --- chip/mec1322/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip/mec1322') diff --git a/chip/mec1322/i2c.c b/chip/mec1322/i2c.c index 6a0fa0a5cc..5d44f362ea 100644 --- a/chip/mec1322/i2c.c +++ b/chip/mec1322/i2c.c @@ -265,7 +265,7 @@ int chip_i2c_xfer(const int port, (((reg & (STS_BER | STS_LAB)) || !(reg & STS_NBB)) || (get_line_level(controller) != I2C_LINE_IDLE))) { - CPRINTS("i2c%s bad status 0x%02x, SCL=%d, SDA=%d", + CPRINTS("i2c%s bad status 0x%02x, SCL=%ld, SDA=%ld", i2c_port_names[port], reg, get_line_level(controller) & I2C_LINE_SCL_HIGH, get_line_level(controller) & I2C_LINE_SDA_HIGH); -- cgit v1.2.1