From: Stefan Hajnoczi <stefanha@gmail.com>
To: Stefan Weil <sw@weilnetz.de>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] qxl: Add missing GCC_FMT_ATTR and fix format specifier
Date: Mon, 2 Apr 2012 14:05:04 +0100 [thread overview]
Message-ID: <20120402130504.GD11583@stefanha-thinkpad.localdomain> (raw)
In-Reply-To: <1333310850-28767-1-git-send-email-sw@weilnetz.de>
On Sun, Apr 01, 2012 at 10:07:30PM +0200, Stefan Weil wrote:
> val is an uint64_t, therefore %d was not correct.
>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
Waiting for Gerd's Ack.
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
> hw/qxl.c | 2 +-
> hw/qxl.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/qxl.c b/hw/qxl.c
> index 47a162e..85028dd 100644
> --- a/hw/qxl.c
> +++ b/hw/qxl.c
> @@ -1370,7 +1370,7 @@ async_common:
> case QXL_IO_DESTROY_SURFACE_WAIT:
> if (val >= NUM_SURFACES) {
> qxl_guest_bug(d, "QXL_IO_DESTROY_SURFACE (async=%d):"
> - "%d >= NUM_SURFACES", async, val);
> + "%" PRIu64 " >= NUM_SURFACES", async, val);
> goto cancel_async;
> }
> qxl_spice_destroy_surface_wait(d, val, async);
> diff --git a/hw/qxl.h b/hw/qxl.h
> index 11a0db3..cbb1e2d 100644
> --- a/hw/qxl.h
> +++ b/hw/qxl.h
> @@ -127,7 +127,7 @@ typedef struct PCIQXLDevice {
>
> /* qxl.c */
> void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL phys, int group_id);
> -void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...);
> +void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...) GCC_FMT_ATTR(2, 3);
>
> void qxl_spice_update_area(PCIQXLDevice *qxl, uint32_t surface_id,
> struct QXLRect *area, struct QXLRect *dirty_rects,
For two unrelated fixes I would do separate commits but don't worry
about resending.
Stefan
prev parent reply other threads:[~2012-04-02 13:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-01 20:07 [Qemu-devel] [PATCH] qxl: Add missing GCC_FMT_ATTR and fix format specifier Stefan Weil
2012-04-02 13:05 ` Stefan Hajnoczi [this message]
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=20120402130504.GD11583@stefanha-thinkpad.localdomain \
--to=stefanha@gmail.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=sw@weilnetz.de \
/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).