summaryrefslogtreecommitdiff
path: root/common/i2c_master.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/i2c_master.c')
-rw-r--r--common/i2c_master.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/i2c_master.c b/common/i2c_master.c
index 01cbfaad26..f9ac88ea45 100644
--- a/common/i2c_master.c
+++ b/common/i2c_master.c
@@ -451,7 +451,8 @@ int i2c_unwedge(int port)
* If we get here, a slave is holding the clock
* low and there is nothing we can do.
*/
- CPUTS("I2C unwedge failed, SCL is being held low");
+ CPRINTS("I2C%d unwedge failed, "
+ "SCL is held low", port);
ret = EC_ERROR_UNKNOWN;
goto unwedge_done;
}
@@ -464,7 +465,7 @@ int i2c_unwedge(int port)
if (i2c_raw_get_sda(port))
goto unwedge_done;
- CPUTS("I2C unwedge called with SDA held low");
+ CPRINTS("I2C%d unwedge called with SDA held low", port);
/* Keep trying to unwedge the SDA line until we run out of attempts. */
for (i = 0; i < UNWEDGE_SDA_ATTEMPTS; i++) {
@@ -499,11 +500,11 @@ int i2c_unwedge(int port)
}
if (!i2c_raw_get_sda(port)) {
- CPUTS("I2C unwedge failed, SDA still low");
+ CPRINTS("I2C%d unwedge failed, SDA still low", port);
ret = EC_ERROR_UNKNOWN;
}
if (!i2c_raw_get_scl(port)) {
- CPUTS("I2C unwedge failed, SCL still low");
+ CPRINTS("I2C%d unwedge failed, SCL still low", port);
ret = EC_ERROR_UNKNOWN;
}