qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] usb-linux.c: fix warning


From: Kirill A. Shutemov
Subject: [Qemu-devel] [PATCH] usb-linux.c: fix warning
Date: Sat, 12 Sep 2009 02:12:12 +0300

    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 <address@hidden>
---
 usb-linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]