* [Qemu-devel] [PATCH] usb-linux.c: fix warning
@ 2009-09-11 23:12 Kirill A. Shutemov
0 siblings, 0 replies; only message in thread
From: Kirill A. Shutemov @ 2009-09-11 23:12 UTC (permalink / raw)
To: qemu-devel; +Cc: Kirill A. Shutemov
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(-)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-11 20:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-11 23:12 [Qemu-devel] [PATCH] usb-linux.c: fix warning Kirill A. Shutemov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).