summaryrefslogtreecommitdiff
path: root/chip/mec1322
diff options
context:
space:
mode:
authorEvan Green <evgreen@chromium.org>2019-09-23 13:19:18 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-05 00:47:52 +0000
commit7200037dfc674977bffc3d58a15547d97f3ef681 (patch)
treee9b7630db4f17ec7bf6fbaf01322a05ff0ee6419 /chip/mec1322
parent2eade31e87a7662dc03dcead556917dfa13d0983 (diff)
downloadchrome-ec-7200037dfc674977bffc3d58a15547d97f3ef681.tar.gz
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 <evgreen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1819653 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'chip/mec1322')
-rw-r--r--chip/mec1322/i2c.c2
1 files changed, 1 insertions, 1 deletions
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);