summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2013-10-06 13:48:47 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-07 00:05:09 -0700
commitafc3cba5395a9f46de7cd50ba0e54a70b1d7b2b1 (patch)
treec71888d43fd924c54de5934cb2963e39940ea2da
parent2b4ef839d6253e13f218f4782b1a5a595a15c747 (diff)
downloadblackbird-obmc-linux-afc3cba5395a9f46de7cd50ba0e54a70b1d7b2b1.tar.gz
blackbird-obmc-linux-afc3cba5395a9f46de7cd50ba0e54a70b1d7b2b1.zip
usb: wusbcore: fix string formatting warnings on 64-bit builds
This patch fixes compile warnings on 64-bit builds that were introduced by the recent isoc changes. Reported-by: kbuild test robot <fengguang.wu@intel.com> Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/wusbcore/wa-xfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/wusbcore/wa-xfer.c b/drivers/usb/wusbcore/wa-xfer.c
index e097da30a26b..fd00e1aaccf4 100644
--- a/drivers/usb/wusbcore/wa-xfer.c
+++ b/drivers/usb/wusbcore/wa-xfer.c
@@ -470,7 +470,7 @@ static ssize_t __wa_xfer_setup_sizes(struct wa_xfer *xfer,
xfer->segs = DIV_ROUND_UP(urb->transfer_buffer_length,
xfer->seg_size);
if (xfer->segs >= WA_SEGS_MAX) {
- dev_err(dev, "BUG? oops, number of segments %d bigger than %d\n",
+ dev_err(dev, "BUG? oops, number of segments %zu bigger than %d\n",
(urb->transfer_buffer_length/xfer->seg_size),
WA_SEGS_MAX);
result = -EINVAL;
@@ -1920,7 +1920,7 @@ static void wa_process_iso_packet_status(struct wahc *wa, struct urb *urb)
dev_dbg(dev, "DTI: isoc packet status %d bytes at %p\n",
urb->actual_length, urb->transfer_buffer);
if (urb->actual_length != expected_size) {
- dev_err(dev, "DTI Error: isoc packet status--bad urb length (%d bytes vs %zu needed)\n",
+ dev_err(dev, "DTI Error: isoc packet status--bad urb length (%d bytes vs %d needed)\n",
urb->actual_length, expected_size);
goto error_parse_buffer;
}
OpenPOWER on IntegriCloud