diff options
author | Jiri Kosina <jkosina@suse.cz> | 2014-02-17 17:44:54 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-02-17 17:44:54 -0500 |
commit | 5a673fce04fa953c6915f8ed4bb8491c7d099d14 (patch) | |
tree | 8efdf00d6b9814fc52940fb7a3c5b9087fe96d39 /drivers/hid/hid-cp2112.c | |
parent | c3c041ba4c61535d7f5a36230c8dfdff2a9a70bb (diff) |
HID: cp2112: use proper specifier for size_t
%zd is a proper format string specifier for size_t
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-cp2112.c')
-rw-r--r-- | drivers/hid/hid-cp2112.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-cp2112.c b/drivers/hid/hid-cp2112.c index 57cf04555a03..f32672624691 100644 --- a/drivers/hid/hid-cp2112.c +++ b/drivers/hid/hid-cp2112.c | |||
@@ -361,7 +361,7 @@ static int cp2112_read(struct cp2112_device *dev, u8 *data, size_t size) | |||
361 | if (ret) | 361 | if (ret) |
362 | return ret; | 362 | return ret; |
363 | 363 | ||
364 | hid_dbg(hdev, "read %d of %d bytes requested\n", | 364 | hid_dbg(hdev, "read %d of %zd bytes requested\n", |
365 | dev->read_length, size); | 365 | dev->read_length, size); |
366 | 366 | ||
367 | if (size > dev->read_length) | 367 | if (size > dev->read_length) |
@@ -552,7 +552,7 @@ static int cp2112_xfer(struct i2c_adapter *adap, u16 addr, | |||
552 | if (ret < 0) | 552 | if (ret < 0) |
553 | goto power_normal; | 553 | goto power_normal; |
554 | if (ret != read_length) { | 554 | if (ret != read_length) { |
555 | hid_warn(hdev, "short read: %d < %d\n", ret, read_length); | 555 | hid_warn(hdev, "short read: %d < %zd\n", ret, read_length); |
556 | ret = -EIO; | 556 | ret = -EIO; |
557 | goto power_normal; | 557 | goto power_normal; |
558 | } | 558 | } |