From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3Okh-0008PZ-KM for qemu-devel@nongnu.org; Mon, 30 Nov 2015 08:44:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3Oke-0006PJ-Qf for qemu-devel@nongnu.org; Mon, 30 Nov 2015 08:44:23 -0500 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:35104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3Oke-0006Oq-KU for qemu-devel@nongnu.org; Mon, 30 Nov 2015 08:44:20 -0500 Received: by wmuu63 with SMTP id u63so130003066wmu.0 for ; Mon, 30 Nov 2015 05:44:20 -0800 (PST) Sender: Paolo Bonzini References: <1448889606-14277-1-git-send-email-mst@redhat.com> From: Paolo Bonzini Message-ID: <565C52B1.4070902@redhat.com> Date: Mon, 30 Nov 2015 14:44:17 +0100 MIME-Version: 1.0 In-Reply-To: <1448889606-14277-1-git-send-email-mst@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 for-2.5] vmxnet3: silence warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , qemu-devel@nongnu.org Cc: Dmitry Fleytman , Jason Wang On 30/11/2015 14:20, Michael S. Tsirkin wrote: > vmxnet3 always produces a warning under qtest. > > This is not a user error, don't warn. > > Suggested-by: Paolo Bonzini > 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; > } > > Isn't this v1 again? :) Paolo