sparc32: convert debug printf statements to tracepoints
Replace debug printf statements with tracepoints.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
diff --git a/hw/lance.c b/hw/lance.c
index b6b04dd..dc12144 100644
--- a/hw/lance.c
+++ b/hw/lance.c
@@ -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 @@
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 @@
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;
}