diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2005-08-14 09:24:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-08 19:28:27 -0400 |
commit | dd7d50081f5dafd9392bd79f1ec90d553a7303c9 (patch) | |
tree | 1cf4373c019c33480375471f7b5d85ada3f3c68c /drivers/usb/misc/ldusb.c | |
parent | 9bc45e0c01ae268ad5f9e6d35492bbd8197e32f2 (diff) |
[PATCH] USB ldusb: fmt warnings fixes for 64-bit platforms
Fix
drivers/usb/misc/ldusb.c: In function `ld_usb_read':
drivers/usb/misc/ldusb.c:467: warning: int format, different type arg (arg 4)
drivers/usb/misc/ldusb.c: In function `ld_usb_write':
drivers/usb/misc/ldusb.c:531: warning: int format, different type arg (arg 4)
drivers/usb/misc/ldusb.c:532: warning: int format, different type arg (arg 5)
drivers/usb/misc/ldusb.c:532: warning: int format, different type arg (arg 6)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc/ldusb.c')
-rw-r--r-- | drivers/usb/misc/ldusb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/misc/ldusb.c b/drivers/usb/misc/ldusb.c index ad17892aac9e..7e93ac96490f 100644 --- a/drivers/usb/misc/ldusb.c +++ b/drivers/usb/misc/ldusb.c | |||
@@ -464,7 +464,7 @@ static ssize_t ld_usb_read(struct file *file, char __user *buffer, size_t count, | |||
464 | actual_buffer = (size_t*)(dev->ring_buffer + dev->ring_tail*(sizeof(size_t)+dev->interrupt_in_endpoint_size)); | 464 | actual_buffer = (size_t*)(dev->ring_buffer + dev->ring_tail*(sizeof(size_t)+dev->interrupt_in_endpoint_size)); |
465 | bytes_to_read = min(count, *actual_buffer); | 465 | bytes_to_read = min(count, *actual_buffer); |
466 | if (bytes_to_read < *actual_buffer) | 466 | if (bytes_to_read < *actual_buffer) |
467 | dev_warn(&dev->intf->dev, "Read buffer overflow, %d bytes dropped\n", | 467 | dev_warn(&dev->intf->dev, "Read buffer overflow, %zd bytes dropped\n", |
468 | *actual_buffer-bytes_to_read); | 468 | *actual_buffer-bytes_to_read); |
469 | 469 | ||
470 | /* copy one interrupt_in_buffer from ring_buffer into userspace */ | 470 | /* copy one interrupt_in_buffer from ring_buffer into userspace */ |
@@ -528,8 +528,8 @@ static ssize_t ld_usb_write(struct file *file, const char __user *buffer, | |||
528 | /* write the data into interrupt_out_buffer from userspace */ | 528 | /* write the data into interrupt_out_buffer from userspace */ |
529 | bytes_to_write = min(count, write_buffer_size*dev->interrupt_out_endpoint_size); | 529 | bytes_to_write = min(count, write_buffer_size*dev->interrupt_out_endpoint_size); |
530 | if (bytes_to_write < count) | 530 | if (bytes_to_write < count) |
531 | dev_warn(&dev->intf->dev, "Write buffer overflow, %d bytes dropped\n",count-bytes_to_write); | 531 | dev_warn(&dev->intf->dev, "Write buffer overflow, %zd bytes dropped\n",count-bytes_to_write); |
532 | dbg_info(&dev->intf->dev, "%s: count = %d, bytes_to_write = %d\n", __FUNCTION__, count, bytes_to_write); | 532 | dbg_info(&dev->intf->dev, "%s: count = %zd, bytes_to_write = %zd\n", __FUNCTION__, count, bytes_to_write); |
533 | 533 | ||
534 | if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write)) { | 534 | if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write)) { |
535 | retval = -EFAULT; | 535 | retval = -EFAULT; |