* [PATCH] hw/input/ps2.c: Remove remnants of printf debug
@ 2020-11-01 13:32 Peter Maydell
2020-11-02 9:18 ` Philippe Mathieu-Daudé
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Peter Maydell @ 2020-11-01 13:32 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial
In commit 5edab03d4040 we added tracepoints to the ps2 keyboard
and mouse emulation. However we didn't remove all the debug-by-printf
support. In fact there is only one printf() remaining, and it is
redundant with the trace_ps2_write_mouse() event next to it.
Remove the printf() and the now-unused DEBUG* macros.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/input/ps2.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/hw/input/ps2.c b/hw/input/ps2.c
index f8746d2f52c..72cdb80ae1c 100644
--- a/hw/input/ps2.c
+++ b/hw/input/ps2.c
@@ -33,12 +33,6 @@
#include "trace.h"
-/* debug PC keyboard */
-//#define DEBUG_KBD
-
-/* debug PC keyboard : only mouse */
-//#define DEBUG_MOUSE
-
/* Keyboard Commands */
#define KBD_CMD_SET_LEDS 0xED /* Set keyboard leds */
#define KBD_CMD_ECHO 0xEE
@@ -790,9 +784,6 @@ void ps2_write_mouse(void *opaque, int val)
PS2MouseState *s = (PS2MouseState *)opaque;
trace_ps2_write_mouse(opaque, val);
-#ifdef DEBUG_MOUSE
- printf("kbd: write mouse 0x%02x\n", val);
-#endif
switch(s->common.write_cmd) {
default:
case -1:
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/input/ps2.c: Remove remnants of printf debug
2020-11-01 13:32 [PATCH] hw/input/ps2.c: Remove remnants of printf debug Peter Maydell
@ 2020-11-02 9:18 ` Philippe Mathieu-Daudé
2020-11-02 11:42 ` Stefano Garzarella
2020-11-12 15:37 ` Peter Maydell
2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-11-02 9:18 UTC (permalink / raw)
To: Peter Maydell, qemu-devel; +Cc: qemu-trivial
On 11/1/20 2:32 PM, Peter Maydell wrote:
> In commit 5edab03d4040 we added tracepoints to the ps2 keyboard
> and mouse emulation. However we didn't remove all the debug-by-printf
> support. In fact there is only one printf() remaining, and it is
> redundant with the trace_ps2_write_mouse() event next to it.
> Remove the printf() and the now-unused DEBUG* macros.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> hw/input/ps2.c | 9 ---------
> 1 file changed, 9 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/input/ps2.c: Remove remnants of printf debug
2020-11-01 13:32 [PATCH] hw/input/ps2.c: Remove remnants of printf debug Peter Maydell
2020-11-02 9:18 ` Philippe Mathieu-Daudé
@ 2020-11-02 11:42 ` Stefano Garzarella
2020-11-12 15:37 ` Peter Maydell
2 siblings, 0 replies; 4+ messages in thread
From: Stefano Garzarella @ 2020-11-02 11:42 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-trivial, qemu-devel
On Sun, Nov 01, 2020 at 01:32:58PM +0000, Peter Maydell wrote:
>In commit 5edab03d4040 we added tracepoints to the ps2 keyboard
>and mouse emulation. However we didn't remove all the debug-by-printf
>support. In fact there is only one printf() remaining, and it is
>redundant with the trace_ps2_write_mouse() event next to it.
>Remove the printf() and the now-unused DEBUG* macros.
>
>Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>---
> hw/input/ps2.c | 9 ---------
> 1 file changed, 9 deletions(-)
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/input/ps2.c: Remove remnants of printf debug
2020-11-01 13:32 [PATCH] hw/input/ps2.c: Remove remnants of printf debug Peter Maydell
2020-11-02 9:18 ` Philippe Mathieu-Daudé
2020-11-02 11:42 ` Stefano Garzarella
@ 2020-11-12 15:37 ` Peter Maydell
2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2020-11-12 15:37 UTC (permalink / raw)
To: QEMU Developers; +Cc: QEMU Trivial
On Sun, 1 Nov 2020 at 13:33, Peter Maydell <peter.maydell@linaro.org> wrote:
>
> In commit 5edab03d4040 we added tracepoints to the ps2 keyboard
> and mouse emulation. However we didn't remove all the debug-by-printf
> support. In fact there is only one printf() remaining, and it is
> redundant with the trace_ps2_write_mouse() event next to it.
> Remove the printf() and the now-unused DEBUG* macros.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org
I'll take this via target-arm.next since I'm putting
a pullreq together anyway.
thanks
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-12 15:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-01 13:32 [PATCH] hw/input/ps2.c: Remove remnants of printf debug Peter Maydell
2020-11-02 9:18 ` Philippe Mathieu-Daudé
2020-11-02 11:42 ` Stefano Garzarella
2020-11-12 15:37 ` Peter Maydell
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).