Received: from eggs.gnu.org ([2001:4830:134:3::10]:45927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXWfT-0004Um-PG for qemu-devel@nongnu.org; Fri, 26 Sep 2014 10:38:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXWfN-0001sW-Dd for qemu-devel@nongnu.org; Fri, 26 Sep 2014 10:38:43 -0400 Received: from mail-wg0-x231.google.com ([2a00:1450:400c:c00::231]:44306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXWfN-0001iG-64 for qemu-devel@nongnu.org; Fri, 26 Sep 2014 10:38:37 -0400 Received: by mail-wg0-f49.google.com with SMTP id x12so9982500wgg.32 for ; Fri, 26 Sep 2014 07:38:31 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 26 Sep 2014 16:38:04 +0200 Message-Id: <1411742290-2940-6-git-send-email-pbonzini@redhat.com> In-Reply-To: <1411742290-2940-1-git-send-email-pbonzini@redhat.com> References: <1411742290-2940-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 05/11] hw/dma/i8257: Silence phony error message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Philipp Hahn From: Philipp Hahn 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 Signed-off-by: Paolo Bonzini --- hw/dma/i8257.c | 4 ++-- trace-events | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index dd370ed..a414029 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -24,6 +24,7 @@ #include "hw/hw.h" #include "hw/isa/isa.h" #include "qemu/main-loop.h" +#include "trace.h" /* #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) { - dolog ("unregistered DMA channel used nchan=%d dma_pos=%d dma_len=%d\n", - nchan, dma_pos, dma_len); + trace_i8257_unregistered_dma(nchan, dma_pos, dma_len); return dma_pos; } diff --git a/trace-events b/trace-events index fb58963..b680a6b 100644 --- a/trace-events +++ b/trace-events @@ -1318,3 +1318,6 @@ mhp_pc_dimm_assigned_address(uint64_t addr) "0x%"PRIx64 # target-s390x/kvm.c kvm_enable_cmma(int rc) "CMMA: enabling 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" -- 2.1.0