diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-05-24 18:45:03 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-06-09 19:01:56 +0200 |
commit | 3b34ee6780f5ebf4c641a7522288b9e7e4e123d6 (patch) | |
tree | 591a4e302695d9a7e2ccdc767e02cc284076294f /hw/dma | |
parent | 449fd1fc0041facd8c9bef0c7eb8d63fd0418a6a (diff) | |
download | qemu-3b34ee6780f5ebf4c641a7522288b9e7e4e123d6.zip qemu-3b34ee6780f5ebf4c641a7522288b9e7e4e123d6.tar.gz qemu-3b34ee6780f5ebf4c641a7522288b9e7e4e123d6.tar.bz2 |
hw/unicore32/puv3: Use qemu_log_mask(ERROR) instead of debug printf()
Replace some debug printf() calls by qemu_log_mask(LOG_GUEST_ERROR).
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200524164503.11944-1-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/dma')
-rw-r--r-- | hw/dma/puv3_dma.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hw/dma/puv3_dma.c b/hw/dma/puv3_dma.c index 5488d38..7fa9791 100644 --- a/hw/dma/puv3_dma.c +++ b/hw/dma/puv3_dma.c @@ -15,6 +15,7 @@ #undef DEBUG_PUV3 #include "hw/unicore32/puv3.h" #include "qemu/module.h" +#include "qemu/log.h" #define PUV3_DMA_CH_NR (6) #define PUV3_DMA_CH_MASK (0xff) @@ -43,7 +44,9 @@ static uint64_t puv3_dma_read(void *opaque, hwaddr offset, ret = s->reg_CFG[PUV3_DMA_CH(offset)]; break; default: - DPRINTF("Bad offset 0x%x\n", offset); + qemu_log_mask(LOG_GUEST_ERROR, + "%s: Bad read offset 0x%"HWADDR_PRIx"\n", + __func__, offset); } DPRINTF("offset 0x%x, value 0x%x\n", offset, ret); @@ -62,7 +65,9 @@ static void puv3_dma_write(void *opaque, hwaddr offset, s->reg_CFG[PUV3_DMA_CH(offset)] = value; break; default: - DPRINTF("Bad offset 0x%x\n", offset); + qemu_log_mask(LOG_GUEST_ERROR, + "%s: Bad write offset 0x%"HWADDR_PRIx"\n", + __func__, offset); } DPRINTF("offset 0x%x, value 0x%x\n", offset, value); } |