Received: from eggs.gnu.org ([2001:4830:134:3::10]:42533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6dZD-0003zO-TK for qemu-devel@nongnu.org; Fri, 05 May 2017 09:46:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6dZA-0005fT-Mo for qemu-devel@nongnu.org; Fri, 05 May 2017 09:46:43 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:33565) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6dZA-0005el-DJ for qemu-devel@nongnu.org; Fri, 05 May 2017 09:46:40 -0400 Received: by mail-wr0-x22c.google.com with SMTP id w50so4216900wrc.0 for ; Fri, 05 May 2017 06:46:40 -0700 (PDT) From: Julien Duponchelle Date: Fri, 5 May 2017 15:46:32 +0200 Message-Id: <20170505134632.19080-1-julien@gns3.net> Subject: [Qemu-devel] [PATCH v2] Disable the not fully implemented warning for e1000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jasowang@redhat.com, Julien Duponchelle Otherwise for image like CISCO IOSv you got a lot of warning on the console preventing you to use the VM because it's slow down the machine. This fix: https://bugs.launchpad.net/qemu/+bug/1673722 Signed-off-by: Julien Duponchelle --- hw/net/e1000.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index f2e5072d27..cf6b82d97b 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -35,6 +35,7 @@ #include "sysemu/dma.h" #include "qemu/iov.h" #include "qemu/range.h" +#include "qemu/log.h" #include "e1000x_common.h" @@ -1264,8 +1265,9 @@ e1000_mmio_write(void *opaque, hwaddr addr, uint64_t val, if (!(mac_reg_access[index] & MAC_ACCESS_FLAG_NEEDED) || (s->compat_flags & (mac_reg_access[index] >> 2))) { if (mac_reg_access[index] & MAC_ACCESS_PARTIAL) { - DBGOUT(GENERAL, "Writing to register at offset: 0x%08x. " - "It is not fully implemented.\n", index<<2); + qemu_log_mask(LOG_UNIMP, "e1000: " + "Writing to register at offset: 0x%08x. " + "It is not fully implemented.", index << 2); } macreg_writeops[index](s, index, val); } else { /* "flag needed" bit is set, but the flag is not active */ @@ -1291,8 +1293,9 @@ e1000_mmio_read(void *opaque, hwaddr addr, unsigned size) if (!(mac_reg_access[index] & MAC_ACCESS_FLAG_NEEDED) || (s->compat_flags & (mac_reg_access[index] >> 2))) { if (mac_reg_access[index] & MAC_ACCESS_PARTIAL) { - DBGOUT(GENERAL, "Reading register at offset: 0x%08x. " - "It is not fully implemented.\n", index<<2); + qemu_log_mask(LOG_UNIMP, "e1000: " + "Reading register at offset: 0x%08x. " + "It is not fully implemented.", index << 2); } return macreg_readops[index](s, index); } else { /* "flag needed" bit is set, but the flag is not active */ -- 2.11.0 (Apple Git-81)