diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-28 21:46:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:43 -0500 |
commit | 8c2399895dc1b5e8976884d4898e68e61ec23e54 (patch) | |
tree | 5b8bbf752ea82aa4260912a7c89f4fff55239efc /drivers | |
parent | 6a18eaf61aadcd7f002ddfa26031525570e6f8b6 (diff) |
V4L/DVB (9767): em28xx: improve board description messages
Print manufacturer/product info from USB device and also card entry.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 3 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-video.c | 15 |
2 files changed, 16 insertions, 2 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index a8c815728a28..01757c018b5e 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -1354,7 +1354,8 @@ void em28xx_pre_card_setup(struct em28xx *dev) | |||
1354 | 1354 | ||
1355 | em28xx_set_model(dev); | 1355 | em28xx_set_model(dev); |
1356 | 1356 | ||
1357 | em28xx_info("Found %s\n", dev->board.name); | 1357 | em28xx_info("Identified as %s (card=%d)\n", |
1358 | dev->board.name, dev->model); | ||
1358 | 1359 | ||
1359 | /* Set the default GPO/GPIO for legacy devices */ | 1360 | /* Set the default GPO/GPIO for legacy devices */ |
1360 | dev->reg_gpo_num = EM2880_R04_GPO; | 1361 | dev->reg_gpo_num = EM2880_R04_GPO; |
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index a0db340e5eb9..32b437fd7936 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c | |||
@@ -2177,6 +2177,7 @@ static int em28xx_usb_probe(struct usb_interface *interface, | |||
2177 | int retval = -ENODEV; | 2177 | int retval = -ENODEV; |
2178 | int i, nr, ifnum, isoc_pipe; | 2178 | int i, nr, ifnum, isoc_pipe; |
2179 | char *speed; | 2179 | char *speed; |
2180 | char descr[255] = ""; | ||
2180 | 2181 | ||
2181 | udev = usb_get_dev(interface_to_usbdev(interface)); | 2182 | udev = usb_get_dev(interface_to_usbdev(interface)); |
2182 | ifnum = interface->altsetting[0].desc.bInterfaceNumber; | 2183 | ifnum = interface->altsetting[0].desc.bInterfaceNumber; |
@@ -2249,8 +2250,20 @@ static int em28xx_usb_probe(struct usb_interface *interface, | |||
2249 | speed = "unknown"; | 2250 | speed = "unknown"; |
2250 | } | 2251 | } |
2251 | 2252 | ||
2252 | printk(DRIVER_NAME ": New video device @ %s Mbps " | 2253 | if (udev->manufacturer) |
2254 | strlcpy(descr, udev->manufacturer, sizeof(descr)); | ||
2255 | |||
2256 | if (udev->product) { | ||
2257 | if (*descr) | ||
2258 | strlcat(descr, " ", sizeof(descr)); | ||
2259 | strlcat(descr, udev->product, sizeof(descr)); | ||
2260 | } | ||
2261 | if (*descr) | ||
2262 | strlcat(descr, " ", sizeof(descr)); | ||
2263 | |||
2264 | printk(DRIVER_NAME ": New device %s@ %s Mbps " | ||
2253 | "(%04x:%04x, interface %d, class %d)\n", | 2265 | "(%04x:%04x, interface %d, class %d)\n", |
2266 | descr, | ||
2254 | speed, | 2267 | speed, |
2255 | le16_to_cpu(udev->descriptor.idVendor), | 2268 | le16_to_cpu(udev->descriptor.idVendor), |
2256 | le16_to_cpu(udev->descriptor.idProduct), | 2269 | le16_to_cpu(udev->descriptor.idProduct), |