|
From: | Laurent Vivier |
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 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |