From: Laurent Vivier <laurent@vivier.eu>
To: Carwyn Ellis <carwynellis@gmail.com>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH 1/2] hw/display/vmware_vga: only show debug output if DEBUG enabled
Date: Tue, 4 Jan 2022 10:27:16 +0100 [thread overview]
Message-ID: <d46faaf5-17c9-20e9-83e8-fb6bcd87ee67@vivier.eu> (raw)
In-Reply-To: <5DC1E921-4166-45E4-8EBE-BA07A2708956@gmail.com>
Le 04/01/2022 à 10:20, Carwyn Ellis a écrit :
> Hey,
>
> Thanks for getting back to me.
>
> Yeah will take a look and update when I have a mo.
It's really easy to do, see below for an example:
...
>>> @@ -297,45 +303,45 @@ static inline bool vmsvga_verify_rect(DisplaySurface *surface,
>>> int x, int y, int w, int h)
>>> {
>>> if (x < 0) {
>>> - fprintf(stderr, "%s: x was < 0 (%d)\n", name, x);
>>> + VMWARE_VGA_DEBUG("%s: x was < 0 (%d)\n", name, x);
replace it by:
trace_vmsvga_verify_rect_check_neg(name, x);
and in hw/display/trace-events you add:
vmsvga_verify_rect_check_neg(const char *name, int x) "%s: x was < 0 (%d)"
Thanks,
Laurent
next prev parent reply other threads:[~2022-01-04 9:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 9:11 [PATCH 0/2] hw/display/vmware_vga: supress debug output and fix Carwyn Ellis
2022-01-04 9:11 ` [PATCH 1/2] hw/display/vmware_vga: only show debug output if DEBUG enabled Carwyn Ellis
2022-01-04 9:18 ` Laurent Vivier
2022-01-04 9:20 ` Carwyn Ellis
2022-01-04 9:27 ` Laurent Vivier [this message]
2022-01-04 9:28 ` Carwyn Ellis
2022-01-04 9:11 ` [PATCH 2/2] hw/display/vmware_vga: do not discard screen updates Carwyn Ellis
2022-01-04 12:23 ` Gerd Hoffmann
2022-01-04 13:17 ` Carwyn Ellis
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=d46faaf5-17c9-20e9-83e8-fb6bcd87ee67@vivier.eu \
--to=laurent@vivier.eu \
--cc=carwynellis@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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).