Skip to content

Commit

Permalink
HID: cp2112: use proper specifier for size_t
Browse files Browse the repository at this point in the history
%zd is a proper format string specifier for size_t

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Jiri Kosina committed Feb 17, 2014
1 parent c3c041b commit 5a673fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hid/hid-cp2112.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static int cp2112_read(struct cp2112_device *dev, u8 *data, size_t size)
if (ret)
return ret;

hid_dbg(hdev, "read %d of %d bytes requested\n",
hid_dbg(hdev, "read %d of %zd bytes requested\n",
dev->read_length, size);

if (size > dev->read_length)
Expand Down Expand Up @@ -552,7 +552,7 @@ static int cp2112_xfer(struct i2c_adapter *adap, u16 addr,
if (ret < 0)
goto power_normal;
if (ret != read_length) {
hid_warn(hdev, "short read: %d < %d\n", ret, read_length);
hid_warn(hdev, "short read: %d < %zd\n", ret, read_length);
ret = -EIO;
goto power_normal;
}
Expand Down

0 comments on commit 5a673fc

Please sign in to comment.