aboutsummaryrefslogtreecommitdiff
path: root/usb-linux.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-12 03:18:18 +0400
committermalc <av1474@comtv.ru>2009-09-12 03:18:40 +0400
commitb2e3b6e914b45b8ea4dd5c4368a28c3b6d412c89 (patch)
tree0bd443a2f7690b2c74b1ea7d925bb46f9540cf15 /usb-linux.c
parent057fa65c5ddf915d73b69964f32fc854c914efd4 (diff)
downloadqemu-b2e3b6e914b45b8ea4dd5c4368a28c3b6d412c89.zip
qemu-b2e3b6e914b45b8ea4dd5c4368a28c3b6d412c89.tar.gz
qemu-b2e3b6e914b45b8ea4dd5c4368a28c3b6d412c89.tar.bz2
Use proper format conversion specifier when printing size_t value
And untabify this while we are at it. Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'usb-linux.c')
-rw-r--r--usb-linux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usb-linux.c b/usb-linux.c
index c80499a..c434e4f 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -583,9 +583,9 @@ static int usb_host_handle_control(USBHostDevice *s, USBPacket *p)
buffer_len = 8 + s->ctrl.len;
if (buffer_len > sizeof(s->ctrl.buffer)) {
- fprintf(stderr, "husb: ctrl buffer too small (%u > %lu)\n",
- buffer_len, sizeof(s->ctrl.buffer));
- return USB_RET_STALL;
+ fprintf(stderr, "husb: ctrl buffer too small (%u > %zu)\n",
+ buffer_len, sizeof(s->ctrl.buffer));
+ return USB_RET_STALL;
}
aurb = async_alloc();