Use proper format conversion specifier when printing size_t value
authormalc <av1474@comtv.ru>
Fri, 11 Sep 2009 23:18:18 +0000 (03:18 +0400)
committermalc <av1474@comtv.ru>
Fri, 11 Sep 2009 23:18:40 +0000 (03:18 +0400)
And untabify this while we are at it.

Signed-off-by: malc <av1474@comtv.ru>

usb-linux.c

index c80499a..c434e4f 100644 (file)
@@ -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();