Re: [patch review 1/3] net/usb: catc.c - place dev_err instead of err()

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

 



On Sunday 11 January 2009, Alexey Klimov wrote:
> -                               err("submit(rx_urb) status %d", res);
> +                               dev_err(&urb->dev->dev, "submit(rx_urb) status %d\n", res);

You should really find and use the device on the *interface* to which
that driver is bound, rather than the one in the URB.  That's what
gets passed in to probe(); drivers normally remember that until a
remove() callback unbinds the driver from that interface.

A weak analogy is issuing a diagnostic about the PCI bus to which
the PCI device is attached, instead of the PCI device itself.  In
both cases, the diagnostic would point to the wrong thing...

The other two patches got this right in at least some cases, but I
didn't look in any detail.

- Dave

--
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