From: Greg KH <greg@kroah.com>
To: Jon Grant <jg@jguk.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: USB disconnect, address 6
Date: Mon, 6 Apr 2009 08:04:31 -0700 [thread overview]
Message-ID: <20090406150431.GA25557@kroah.com> (raw)
In-Reply-To: <19ac3f7a0904060211s5a79b659tf8ac315010151dbb@mail.gmail.com>
On Mon, Apr 06, 2009 at 11:11:55AM +0200, Jon Grant wrote:
> Hello
>
> 2009/4/6 Greg KH <greg@kroah.com>:
> > On Sun, Apr 05, 2009 at 07:04:45PM +0100, Jon Grant wrote:
> >> Hello
> >>
> >> Would there be a way to propagate the device name back from the scsi
> >> system to the usb so it can name the device which is disconnected in
> >> the output? This saves needing to go hunting to find what the
> >> disconnected device was.
> >
> > What do you mean, all the info needed is already in the messages below,
> > what more do you need?
>
> The idea was that the disconnect could give more information.
> Otherwise it's necessary to go hunting back up the log to track down
> which USB device was the one disconnected (which works fine, but isn't
> ideal for time consumed doing this regularly).
As you yanked the device out, don't you know which one it was?
> [...]
> >> Apr 5 18:56:58 data-laptop kernel: [65451.669308] usb 5-1: USB disconnect, address 6
> >
> >
> > confused,
>
> If it said instead:
>
> Apr 5 18:56:58 data-laptop kernel: usb 5-1: USB disconnect, address 6
> (Samsung Mighty Drive)
>
> Would this not be clearer?
That might be nice, but note that the kernel doesn't even know the
strings after a device is gone, as it had to read them from the device
:)
Also, lots of devices don't have strings describing them, and some of
them are just flat out wrong. And, if you have multiple devices of the
same type, it wouldn't really help out any either.
So it would be a bit difficult to do this, sorry.
thanks,
greg k-h
next prev parent reply other threads:[~2009-04-06 15:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-05 18:04 USB disconnect, address 6 Jon Grant
2009-04-06 2:23 ` Greg KH
2009-04-06 9:11 ` Jon Grant
2009-04-06 15:04 ` Greg KH [this message]
2009-04-06 19:33 ` Jon Grant
2009-04-06 20:08 ` J.R. Mauro
2009-04-07 15:11 ` Stefan Richter
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=20090406150431.GA25557@kroah.com \
--to=greg@kroah.com \
--cc=jg@jguk.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox