hw/dma/i8257: Silence phony error message

Convert into trace event. Otherwise the message
	dma: unregistered DMA channel used nchan=0 dma_pos=0 dma_len=1
gets printed every time and fills up the log-file with 50 MiB / minute.

Signed-off-by: Philipp Hahn <hahn@univention.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Philipp Hahn 2014-09-10 13:47:15 +02:00 committed by Paolo Bonzini
parent 9a48bcd1b8
commit 7dbb4c49bf
2 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,7 @@
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/isa/isa.h" #include "hw/isa/isa.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "trace.h"
/* #define DEBUG_DMA */ /* #define DEBUG_DMA */
@ -473,8 +474,7 @@ static void dma_reset(void *opaque)
static int dma_phony_handler (void *opaque, int nchan, int dma_pos, int dma_len) static int dma_phony_handler (void *opaque, int nchan, int dma_pos, int dma_len)
{ {
dolog ("unregistered DMA channel used nchan=%d dma_pos=%d dma_len=%d\n", trace_i8257_unregistered_dma(nchan, dma_pos, dma_len);
nchan, dma_pos, dma_len);
return dma_pos; return dma_pos;
} }

View File

@ -1318,3 +1318,6 @@ mhp_pc_dimm_assigned_address(uint64_t addr) "0x%"PRIx64
# target-s390x/kvm.c # target-s390x/kvm.c
kvm_enable_cmma(int rc) "CMMA: enabling with result code %d" kvm_enable_cmma(int rc) "CMMA: enabling with result code %d"
kvm_clear_cmma(int rc) "CMMA: clearing with result code %d" kvm_clear_cmma(int rc) "CMMA: clearing with result code %d"
# hw/dma/i8257.c
i8257_unregistered_dma(int nchan, int dma_pos, int dma_len) "unregistered DMA channel used nchan=%d dma_pos=%d dma_len=%d"