From: Markus Armbruster <armbru@redhat.com>
To: Alon Levy <alevy@redhat.com>
Cc: qemu-devel@nongnu.org, kraxel@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/2] hw/display/qxl: improve framebuffer error message
Date: Mon, 20 Jan 2014 12:55:05 +0100 [thread overview]
Message-ID: <87bnz627hi.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <1390214659-12296-1-git-send-email-alevy@redhat.com> (Alon Levy's message of "Mon, 20 Jan 2014 12:44:18 +0200")
Alon Levy <alevy@redhat.com> writes:
> Signed-off-by: Alon Levy <alevy@redhat.com>
> ---
> hw/display/qxl.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/display/qxl.c b/hw/display/qxl.c
> index e4f172e..f6af470 100644
> --- a/hw/display/qxl.c
> +++ b/hw/display/qxl.c
> @@ -1367,7 +1367,8 @@ static void qxl_create_guest_primary(PCIQXLDevice *qxl, int loadvm,
> size = abs(requested_stride) * requested_height;
> if (size > qxl->vgamem_size) {
> qxl_set_guest_bug(qxl, "%s: requested primary larger then framebuffer"
> - " size", __func__);
> + " size %d > %d", __func__, size,
> + qxl->vgamem_size);
> return;
> }
Shouldn't you use %u or %PRIu32 to print uint32_t qxl->vgamem_size?
Hmm, we're comparing int size to uint32_t vgamem_size, not nice. Should
size be unsigned?
Since you touch the message anyway, you could fix "larger then" to
"larger than".
next prev parent reply other threads:[~2014-01-20 11:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-20 10:44 [Qemu-devel] [PATCH 1/2] hw/display/qxl: improve framebuffer error message Alon Levy
2014-01-20 10:44 ` [Qemu-devel] [PATCH 2/2] qxl: clear irq on reset Alon Levy
2014-01-21 10:56 ` Gerd Hoffmann
2014-01-20 11:55 ` Markus Armbruster [this message]
2014-01-20 13:29 ` [Qemu-devel] [PATCH v2] hw/display/qxl: fix signed to unsigned comparison Alon Levy
2014-01-20 13:52 ` Markus Armbruster
2014-01-20 13:53 ` Peter Maydell
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=87bnz627hi.fsf@blackfin.pond.sub.org \
--to=armbru@redhat.com \
--cc=alevy@redhat.com \
--cc=kraxel@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.