All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gonglei <arei.gonglei@huawei.com>
To: Jun Li <junmuzi@gmail.com>
Cc: juli@redhat.com, famz@redhat.com, qemu-devel@nongnu.org,
	kraxel@redhat.com
Subject: Re: [Qemu-devel] [PATCH] usb: delete error_report() for usb-bot
Date: Mon, 17 Nov 2014 14:25:55 +0800	[thread overview]
Message-ID: <546994F3.5060307@huawei.com> (raw)
In-Reply-To: <1416203375-8185-1-git-send-email-junmuzi@gmail.com>

On 2014/11/17 13:49, Jun Li wrote:

> When no device under usb-bot bus, usb_msd_handle_data() will print "usb-msd: Bad
> LUN 0". This is not correct hints. So delete error_report here. When
> scsi_device_find() return NULL, just goto fail.
> 

If the hints is incorrect, I think you should change the hint message, but not delete it,
because that's a recession.

Best regards,
-Gonglei

> This patch fixes following bug.
> https://bugzilla.redhat.com/show_bug.cgi?id=1164665
> 
> Signed-off-by: Jun Li <junmuzi@gmail.com>
> ---
>  hw/usb/dev-storage.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c
> index 4539733..f386d62 100644
> --- a/hw/usb/dev-storage.c
> +++ b/hw/usb/dev-storage.c
> @@ -424,7 +424,6 @@ static void usb_msd_handle_data(USBDevice *dev, USBPacket *p)
>              DPRINTF("Command on LUN %d\n", cbw.lun);
>              scsi_dev = scsi_device_find(&s->bus, 0, 0, cbw.lun);
>              if (scsi_dev == NULL) {
> -                error_report("usb-msd: Bad LUN %d", cbw.lun);
>                  goto fail;
>              }
>              tag = le32_to_cpu(cbw.tag);

      reply	other threads:[~2014-11-17  6:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-17  5:49 [Qemu-devel] [PATCH] usb: delete error_report() for usb-bot Jun Li
2014-11-17  6:25 ` Gonglei [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=546994F3.5060307@huawei.com \
    --to=arei.gonglei@huawei.com \
    --cc=famz@redhat.com \
    --cc=juli@redhat.com \
    --cc=junmuzi@gmail.com \
    --cc=kraxel@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.