summary refs log tree commit diff stats
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
parent057fa65c5ddf915d73b69964f32fc854c914efd4 (diff)
downloadfocaccia-qemu-b2e3b6e914b45b8ea4dd5c4368a28c3b6d412c89.tar.gz
focaccia-qemu-b2e3b6e914b45b8ea4dd5c4368a28c3b6d412c89.zip
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>
-rw-r--r--usb-linux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usb-linux.c b/usb-linux.c
index c80499af94..c434e4f8a7 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();