From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3MUB-0006wM-Fc for qemu-devel@nongnu.org; Mon, 30 Nov 2015 06:19:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3MUA-0000Em-QF for qemu-devel@nongnu.org; Mon, 30 Nov 2015 06:19:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3MUA-0000Eb-M8 for qemu-devel@nongnu.org; Mon, 30 Nov 2015 06:19:10 -0500 Date: Mon, 30 Nov 2015 13:19:07 +0200 From: "Michael S. Tsirkin" Message-ID: <1448882346-14397-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] vmxnet3: silence warning under qtest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Dmitry Fleytman , Jason Wang This is not a user error, don't warn. Signed-off-by: Michael S. Tsirkin --- hw/net/vmxnet3.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index 5e3a233..0e9e6d9 100644 --- a/hw/net/vmxnet3.c +++ b/hw/net/vmxnet3.c @@ -25,6 +25,7 @@ #include "qemu/bswap.h" #include "hw/pci/msix.h" #include "hw/pci/msi.h" +#include "sysemu/qtest.h" #include "vmxnet3.h" #include "vmxnet_debug.h" @@ -2015,7 +2016,9 @@ static bool vmxnet3_peer_has_vnet_hdr(VMXNET3State *s) return true; } - VMW_WRPRN("Peer has no virtio extension. Task offloads will be emulated."); + if (!qtest_enabled()) { + VMW_WRPRN("Peer has no virtio extension. Task offloads will be emulated."); + } return false; } -- MST