Patchwork usb-linux.c: fix warning

login
register
mail settings
Submitter Kirill A. Shutemov
Date Sept. 11, 2009, 11:12 p.m.
Message ID <1252710732-30468-1-git-send-email-kirill@shutemov.name>
Download mbox | patch
Permalink /patch/33484/
State Superseded
Headers show

Comments

Kirill A. Shutemov - Sept. 11, 2009, 11:12 p.m.
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(-)

Patch

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;
     }