summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-04-21 22:15:22 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-23 09:05:51 +0200
commit9c63e92baaea8fd35d9892e197a97d3bb39079f4 (patch)
tree2375a04e74f083894db37d4bf8a2fa78619d46bc /drivers/usb/core
parent86afb22eae1230a84a7835dd370a0a744c92cb74 (diff)
downloadbarebox-9c63e92baaea8fd35d9892e197a97d3bb39079f4.tar.gz
barebox-9c63e92baaea8fd35d9892e197a97d3bb39079f4.tar.xz
treewide: fix signedness mixups in printf format specifiers
This most likely doesn't fix any real bugs, but it's the right thing to do and reduces the noise level with static checkers. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index fe1ac0280a..9c1571d190 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -706,12 +706,12 @@ int usb_get_configuration_no(struct usb_device *dev,
if (tmp > USB_BUFSIZ) {
USB_PRINTF("usb_get_configuration_no: failed to get " \
- "descriptor - too long: %d\n", tmp);
+ "descriptor - too long: %u\n", tmp);
return -1;
}
result = usb_get_descriptor(dev, USB_DT_CONFIG, cfgno, buffer, tmp);
- USB_PRINTF("get_conf_no %d Result %d, wLength %d\n",
+ USB_PRINTF("get_conf_no %d Result %d, wLength %u\n",
cfgno, result, tmp);
return result;
}