diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-10-31 09:24:14 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-10-31 09:24:14 +0000 |
commit | 97bf4851fe2542635ebe33bdd1473012a2421b42 (patch) | |
tree | 9116cd7180ec1b2d4c8d65e52fc5b69d2a571a7f /hw/lance.c | |
parent | b45e9c05dbacba8e992f0bffeca04c6379c3ad45 (diff) | |
download | qemu-97bf4851fe2542635ebe33bdd1473012a2421b42.zip qemu-97bf4851fe2542635ebe33bdd1473012a2421b42.tar.gz qemu-97bf4851fe2542635ebe33bdd1473012a2421b42.tar.bz2 |
sparc32: convert debug printf statements to tracepoints
Replace debug printf statements with tracepoints.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/lance.c')
-rw-r--r-- | hw/lance.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -40,8 +40,8 @@ #include "qemu-timer.h" #include "qemu_socket.h" #include "sun4m.h" - #include "pcnet.h" +#include "trace.h" typedef struct { SysBusDevice busdev; @@ -59,10 +59,8 @@ static void lance_mem_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { SysBusPCNetState *d = opaque; -#ifdef PCNET_DEBUG_IO - printf("lance_mem_writew addr=" TARGET_FMT_plx " val=0x%04x\n", addr, - val & 0xffff); -#endif + + trace_lance_mem_writew(addr, val & 0xffff); pcnet_ioport_writew(&d->state, addr, val & 0xffff); } @@ -72,11 +70,7 @@ static uint32_t lance_mem_readw(void *opaque, target_phys_addr_t addr) uint32_t val; val = pcnet_ioport_readw(&d->state, addr); -#ifdef PCNET_DEBUG_IO - printf("lance_mem_readw addr=" TARGET_FMT_plx " val = 0x%04x\n", addr, - val & 0xffff); -#endif - + trace_lance_mem_readw(addr, val & 0xffff); return val & 0xffff; } |