Commit fba4578e authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

V4L/DVB (10198): uvcvideo: Print the UVC version number in binary-coded decimal.

The UVC specification release number is a binary-coded decimal number, print
it as such.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2c2d264b
...@@ -1635,7 +1635,7 @@ static int uvc_probe(struct usb_interface *intf, ...@@ -1635,7 +1635,7 @@ static int uvc_probe(struct usb_interface *intf,
goto error; goto error;
} }
uvc_printk(KERN_INFO, "Found UVC %u.%02u device %s (%04x:%04x)\n", uvc_printk(KERN_INFO, "Found UVC %u.%02x device %s (%04x:%04x)\n",
dev->uvc_version >> 8, dev->uvc_version & 0xff, dev->uvc_version >> 8, dev->uvc_version & 0xff,
udev->product ? udev->product : "<unnamed>", udev->product ? udev->product : "<unnamed>",
le16_to_cpu(udev->descriptor.idVendor), le16_to_cpu(udev->descriptor.idVendor),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment