On Wed, 19 Feb 2014, Greg KH wrote:
> > + pr_warn("Process %d (%s) called USBDEVFS_%s for active endpoint
> > %s ep %02x\n",
> > + task_pid_nr(current), current->comm,
> > + ioctl_name, dev_name(&udev->dev), epnum);
> > +}
>
> If you use dev_warn() here, then userspace has a chance to be able to
> map that device name/id to the actual device that was being used at the
> time, instead of having to dig through the message itself (tools like
> journald already handle dev_* messages like this.)
Yeah, that makes sense.
> Care to switch this around?
Coming up...
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html