diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2018-06-21 14:12:49 -0300 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2018-06-29 15:04:18 +0100 |
commit | 0060918661faac174c7e75103ebd4d964c91c02e (patch) | |
tree | 1cb8a96fe6223f7cb252dd1c2669209712f44da4 /hw/char/serial.c | |
parent | dcfebcf9a3f350034d5acff6fe6019ce3586438a (diff) | |
download | qemu-0060918661faac174c7e75103ebd4d964c91c02e.zip qemu-0060918661faac174c7e75103ebd4d964c91c02e.tar.gz qemu-0060918661faac174c7e75103ebd4d964c91c02e.tar.bz2 |
hw/char/serial: Convert from DPRINTF macro to trace events
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/char/serial.c')
-rw-r--r-- | hw/char/serial.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/char/serial.c b/hw/char/serial.c index 605b0d0..26f53ba 100644 --- a/hw/char/serial.c +++ b/hw/char/serial.c @@ -29,6 +29,7 @@ #include "qapi/error.h" #include "qemu/timer.h" #include "qemu/error-report.h" +#include "trace.h" //#define DEBUG_SERIAL @@ -335,7 +336,7 @@ static void serial_ioport_write(void *opaque, hwaddr addr, uint64_t val, SerialState *s = opaque; addr &= 7; - DPRINTF("write addr=0x%" HWADDR_PRIx " val=0x%" PRIx64 "\n", addr, val); + trace_serial_ioport_write(addr, val); switch(addr) { default: case 0: @@ -548,7 +549,7 @@ static uint64_t serial_ioport_read(void *opaque, hwaddr addr, unsigned size) ret = s->scr; break; } - DPRINTF("read addr=0x%" HWADDR_PRIx " val=0x%02x\n", addr, ret); + trace_serial_ioport_read(addr, ret); return ret; } |