i2c: correct string format type
PATCH 1/1 i2c: correct string format type
The parameter count is u16, otherwise we get:
drivers/i2c/i2c.c:186:2: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 5 has type ‘int’ [-Wformat=]
dev_dbg(&client->dev, "%s: %zu@%u --> %d\n", __func__,
Signed-off-by Alexander Aring <[email protected]>
--- drivers/i2c/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/i2c.c +1 -1
@@ -183,7 +183,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@%u --> %d\n" , __func__, +dev_dbg (&client->dev,"%s: %u@%u --> %d\n" , __func__, count, addr, status);if (status ==ARRAY_SIZE (msg))
Signature · 7 lines
1.9.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox