From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: qemu-devel@nongnu.org
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Subject: [Qemu-devel] [PATCH] usb-linux.c: fix warning
Date: Sat, 12 Sep 2009 02:12:12 +0300 [thread overview]
Message-ID: <1252710732-30468-1-git-send-email-kirill@shutemov.name> (raw)
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
reply other threads:[~2009-09-11 20:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1252710732-30468-1-git-send-email-kirill@shutemov.name \
--to=kirill@shutemov.name \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).