summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-09-07 03:55:31 +0200
committerPaolo Bonzini2020-09-30 19:09:20 +0200
commit1acb1fe1665b68f226943bbd2919c630b7e0344c (patch)
tree532fac2176eae6f51f480a4671afb22aa26c292c
parenthw/char/serial: Replace commented DPRINTF() by trace event (diff)
downloadqemu-1acb1fe1665b68f226943bbd2919c630b7e0344c.tar.gz
qemu-1acb1fe1665b68f226943bbd2919c630b7e0344c.tar.xz
qemu-1acb1fe1665b68f226943bbd2919c630b7e0344c.zip
hw/char/serial: Remove old DEBUG_SERIAL commented code
All useful DPRINTF() calls have been converted to trace events. Remove a pointless one in the IOEventHandler, and drop the DEBUG_SERIAL ifdef'ry. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200907015535.827885-4-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--hw/char/serial.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/hw/char/serial.c b/hw/char/serial.c
index e8029f840a..26f7fa8a21 100644
--- a/hw/char/serial.c
+++ b/hw/char/serial.c
@@ -36,8 +36,6 @@
#include "trace.h"
#include "hw/qdev-properties.h"
-//#define DEBUG_SERIAL
-
#define UART_LCR_DLAB 0x80 /* Divisor latch access bit */
#define UART_IER_MSI 0x08 /* Enable Modem status interrupt */
@@ -102,14 +100,6 @@
#define MAX_XMIT_RETRY 4
-#ifdef DEBUG_SERIAL
-#define DPRINTF(fmt, ...) \
-do { fprintf(stderr, "serial: " fmt , ## __VA_ARGS__); } while (0)
-#else
-#define DPRINTF(fmt, ...) \
-do {} while (0)
-#endif
-
static void serial_receive1(void *opaque, const uint8_t *buf, int size);
static void serial_xmit(SerialState *s);
@@ -636,7 +626,6 @@ static void serial_receive1(void *opaque, const uint8_t *buf, int size)
static void serial_event(void *opaque, QEMUChrEvent event)
{
SerialState *s = opaque;
- DPRINTF("event %x\n", event);
if (event == CHR_EVENT_BREAK)
serial_receive_break(s);
}