Message ID | 1589449976-11378-6-git-send-email-christian.gromm@microchip.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | staging: most: move USB adapter driver to stable branch | expand |
On Thu, May 14, 2020 at 11:52:53AM +0200, Christian Gromm wrote: > This patch replaces the functions dev_notice with dev_dbg to silence > the driver during normal operation. > > Signed-off-by: Christian Gromm <christian.gromm@microchip.com> > Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > --- > v2: > > drivers/most/most_usb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/most/most_usb.c b/drivers/most/most_usb.c > index 1655fcd..35620a1 100644 > --- a/drivers/most/most_usb.c > +++ b/drivers/most/most_usb.c > @@ -1129,13 +1129,13 @@ hdm_probe(struct usb_interface *interface, const struct usb_device_id *id) > init_usb_anchor(&mdev->busy_urbs[i]); > spin_lock_init(&mdev->channel_lock[i]); > } > - dev_notice(dev, "claimed gadget: Vendor=%4.4x ProdID=%4.4x Bus=%02x Device=%02x\n", > + dev_dbg(dev, "claimed gadget: Vendor=%4.4x ProdID=%4.4x Bus=%02x Device=%02x\n", > le16_to_cpu(usb_dev->descriptor.idVendor), > le16_to_cpu(usb_dev->descriptor.idProduct), > usb_dev->bus->busnum, > usb_dev->devnum); All the parameters aren't aligned now. regards, dan carpenter
diff --git a/drivers/most/most_usb.c b/drivers/most/most_usb.c index 1655fcd..35620a1 100644 --- a/drivers/most/most_usb.c +++ b/drivers/most/most_usb.c @@ -1129,13 +1129,13 @@ hdm_probe(struct usb_interface *interface, const struct usb_device_id *id) init_usb_anchor(&mdev->busy_urbs[i]); spin_lock_init(&mdev->channel_lock[i]); } - dev_notice(dev, "claimed gadget: Vendor=%4.4x ProdID=%4.4x Bus=%02x Device=%02x\n", + dev_dbg(dev, "claimed gadget: Vendor=%4.4x ProdID=%4.4x Bus=%02x Device=%02x\n", le16_to_cpu(usb_dev->descriptor.idVendor), le16_to_cpu(usb_dev->descriptor.idProduct), usb_dev->bus->busnum, usb_dev->devnum); - dev_notice(dev, "device path: /sys/bus/usb/devices/%d-%s:%d.%d\n", + dev_dbg(dev, "device path: /sys/bus/usb/devices/%d-%s:%d.%d\n", usb_dev->bus->busnum, usb_dev->devpath, usb_dev->config->desc.bConfigurationValue,
This patch replaces the functions dev_notice with dev_dbg to silence the driver during normal operation. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- v2: drivers/most/most_usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)