Received: from eggs.gnu.org ([2001:4830:134:3::10]:42827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Xn5-0000m0-K5 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 19:39:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7Xn3-0003qI-Bt for qemu-devel@nongnu.org; Tue, 23 Jun 2015 19:39:43 -0400 Received: from mail-qg0-x22c.google.com ([2607:f8b0:400d:c04::22c]:33279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Xn3-0003qC-7j for qemu-devel@nongnu.org; Tue, 23 Jun 2015 19:39:41 -0400 Received: by qged89 with SMTP id d89so8928830qge.0 for ; Tue, 23 Jun 2015 16:39:40 -0700 (PDT) From: Don Slutz Date: Tue, 23 Jun 2015 19:39:26 -0400 Message-Id: <1435102773-3498-2-git-send-email-Don.Slutz@Gmail.com> In-Reply-To: <1435102773-3498-1-git-send-email-Don.Slutz@Gmail.com> References: <1435102773-3498-1-git-send-email-Don.Slutz@Gmail.com> Subject: [Qemu-devel] [PATCH v8 1/8] vmport: Switch to trace List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Markus Armbruster , Don Slutz , Luiz Capitulino , Don Slutz , Anthony Liguori , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Richard Henderson From: Don Slutz Signed-off-by: Don Slutz CC: Don Slutz Acked-by: Paolo Bonzini --- v8: Added Acked-by: Paolo Bonzini hw/misc/vmport.c | 6 ++---- trace-events | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/misc/vmport.c b/hw/misc/vmport.c index 7fcc00d..3b81d04 100644 --- a/hw/misc/vmport.c +++ b/hw/misc/vmport.c @@ -27,7 +27,7 @@ #include "sysemu/kvm.h" #include "hw/qdev.h" -//#define VMPORT_DEBUG +#include "trace.h" #define VMPORT_CMD_GETVERSION 0x0a #define VMPORT_CMD_GETRAMSIZE 0x14 @@ -80,9 +80,7 @@ static uint64_t vmport_ioport_read(void *opaque, hwaddr addr, return eax; if (!s->func[command]) { -#ifdef VMPORT_DEBUG - fprintf(stderr, "vmport: unknown command %x\n", command); -#endif + trace_vmport_ioport_unknown_command(command); return eax; } diff --git a/trace-events b/trace-events index 90099e6..80e8a76 100644 --- a/trace-events +++ b/trace-events @@ -889,6 +889,9 @@ pc87312_info_ide(uint32_t base) "base 0x%x" pc87312_info_parallel(uint32_t base, uint32_t irq) "base 0x%x, irq %u" pc87312_info_serial(int n, uint32_t base, uint32_t irq) "id=%d, base 0x%x, irq %u" +# hw/misc/vmport.c +vmport_ioport_unknown_command(unsigned char command) "%x" + # hw/scsi/vmw_pvscsi.c pvscsi_ring_init_data(uint32_t txr_len_log2, uint32_t rxr_len_log2) "TX/RX rings logarithms set to %d/%d" pvscsi_ring_init_msg(uint32_t len_log2) "MSG ring logarithm set to %d" -- 1.8.3.1