Message ID | 1252710732-30468-1-git-send-email-kirill@shutemov.name |
---|---|
State | Superseded |
Headers | show |
diff --git a/usb-linux.c b/usb-linux.c index c80499a..739a67a 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -583,7 +583,7 @@ 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", + fprintf(stderr, "husb: ctrl buffer too small (%u > %zd)\n", buffer_len, sizeof(s->ctrl.buffer)); return USB_RET_STALL; }
CC usb-linux.o cc1: warnings being treated as errors usb-linux.c: In function 'usb_host_handle_control': usb-linux.c:587: error: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int' make: *** [usb-linux.o] Error 1 Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> --- usb-linux.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)