Commit 0f982aa0 authored by Randy Dunlap's avatar Randy Dunlap Committed by Greg Kroah-Hartman

[PATCH] USB: fix printk parameter types

parent b1525426
......@@ -1600,7 +1600,7 @@ static ssize_t usbvideo_v4l_read(struct file *file, char *buf,
return -EFAULT;
if (uvd->debug >= 1)
info("%s: %d. bytes, noblock=%d.", __FUNCTION__, count, noblock);
info("%s: %Zd. bytes, noblock=%d.", __FUNCTION__, count, noblock);
down(&uvd->lock);
......@@ -1718,7 +1718,7 @@ static ssize_t usbvideo_v4l_read(struct file *file, char *buf,
/* Update last read position */
frame->seqRead_Index += count;
if (uvd->debug >= 1) {
err("%s: {copy} count used=%d, new seqRead_Index=%ld",
err("%s: {copy} count used=%Zd, new seqRead_Index=%ld",
__FUNCTION__, count, frame->seqRead_Index);
}
......
......@@ -649,7 +649,7 @@ static int palm_os_3_probe (struct usb_serial *serial, const struct usb_device_i
transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL);
if (!transfer_buffer) {
dev_err(dev, "%s - kmalloc(%d) failed.\n", __FUNCTION__,
dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __FUNCTION__,
sizeof(*connection_info));
return -ENOMEM;
}
......@@ -735,7 +735,7 @@ static int palm_os_4_probe (struct usb_serial *serial, const struct usb_device_i
transfer_buffer = kmalloc (sizeof (*connection_info), GFP_KERNEL);
if (!transfer_buffer) {
dev_err(dev, "%s - kmalloc(%d) failed.\n", __FUNCTION__,
dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __FUNCTION__,
sizeof(*connection_info));
return -ENOMEM;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment