All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>, qemu-devel@nongnu.org
Cc: Dmitry Fleytman <dmitry@daynix.com>, Jason Wang <jasowang@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] vmxnet3: silence warning under qtest
Date: Mon, 30 Nov 2015 12:22:15 +0100	[thread overview]
Message-ID: <565C3167.5070009@redhat.com> (raw)
In-Reply-To: <1448882346-14397-1-git-send-email-mst@redhat.com>



On 30/11/2015 12:19, Michael S. Tsirkin wrote:
> This is not a user error, don't warn.
> 
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>  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;
>  }

Let's just delete it, there's no similar warning for virtio.

Paolo

      reply	other threads:[~2015-11-30 11:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-30 11:19 [Qemu-devel] [PATCH] vmxnet3: silence warning under qtest Michael S. Tsirkin
2015-11-30 11:22 ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=565C3167.5070009@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=dmitry@daynix.com \
    --cc=jasowang@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.