diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-20 13:42:03 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-18 15:08:15 +0300 |
commit | ce8591ff023ef8e04750c2cc2882523619a80b58 (patch) | |
tree | a513137f48890cd4ef0e51966666b4398d2bb747 /drivers/media/usb/em28xx/em28xx-vbi.c | |
parent | 39ad799a85e2afb2eeb0295cabe81e183b011b95 (diff) | |
download | linux-ce8591ff023ef8e04750c2cc2882523619a80b58.tar.xz |
[media] em28xx: convert it from pr_foo() to dev_foo()
Instead of using pr_foo(), use dev_foo(), with provides a
better output. As this device is a multi-interface one,
we'll set the device name to show the chipset and the driver
used.
While here, get rid of printk continuation messages.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-vbi.c')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-vbi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-vbi.c b/drivers/media/usb/em28xx/em28xx-vbi.c index 744b3300b153..1b21d001cc7e 100644 --- a/drivers/media/usb/em28xx/em28xx-vbi.c +++ b/drivers/media/usb/em28xx/em28xx-vbi.c @@ -27,6 +27,7 @@ #include <linux/module.h> #include <linux/hardirq.h> #include <linux/init.h> +#include <linux/usb.h> #include "em28xx-v4l.h" @@ -64,8 +65,9 @@ static int vbi_buffer_prepare(struct vb2_buffer *vb) size = v4l2->vbi_width * v4l2->vbi_height * 2; if (vb2_plane_size(vb, 0) < size) { - pr_info("%s data will not fit into plane (%lu < %lu)\n", - __func__, vb2_plane_size(vb, 0), size); + dev_info(&dev->udev->dev, + "%s data will not fit into plane (%lu < %lu)\n", + __func__, vb2_plane_size(vb, 0), size); return -EINVAL; } vb2_set_plane_payload(vb, 0, size); |