%zd is a proper format string specifier for size_t
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
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)
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;
}