Re: [PATCH] USB: complain if userspace resets an active endpoint

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux