i2c: fix printf format specifier
Use %u instead of %d for an u32 variable Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
14c8c60ac6
commit
e8bbacab05
|
@ -181,7 +181,7 @@ int i2c_read_reg(struct i2c_client *client, u32 addr, u8 *buf, u16 count)
|
|||
msg->len = i;
|
||||
|
||||
status = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg));
|
||||
dev_dbg(&client->dev, "%s: %zu@%d --> %d\n", __func__,
|
||||
dev_dbg(&client->dev, "%s: %zu@%u --> %d\n", __func__,
|
||||
count, addr, status);
|
||||
|
||||
if (status == ARRAY_SIZE(msg))
|
||||
|
@ -214,7 +214,7 @@ int i2c_write_reg(struct i2c_client *client, u32 addr, const u8 *buf, u16 count)
|
|||
memcpy(msg->buf + i, buf, count);
|
||||
|
||||
status = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg));
|
||||
dev_dbg(&client->dev, "%s: %u@%d --> %d\n", __func__,
|
||||
dev_dbg(&client->dev, "%s: %u@%u --> %d\n", __func__,
|
||||
count, addr, status);
|
||||
|
||||
if (status == ARRAY_SIZE(msg))
|
||||
|
|
Loading…
Reference in New Issue