diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-10 04:08:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:37:14 -0400 |
commit | a482f327ff56bc3cf53176a7eb736cea47291a1d (patch) | |
tree | d9a603e7ffd5b718fa78a6988b2802d33324ba95 /drivers/media/video/usbvision | |
parent | 79025a9ed9132880d5197611dec6d8533c121ac7 (diff) |
V4L/DVB (9116): USB: remove info() macro from usb media drivers
USB should not be having it's own printk macros, so remove info() and
use the system-wide standard of dev_info() wherever possible.
Cc: Douglas Landgraf <dougsland@gmail.com>
Cc: Mike Isely <isely@pobox.com>
Cc: Thierry Merle <thierry.merle@free.fr>
Cc: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/usbvision')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-core.c | 3 | ||||
-rw-r--r-- | drivers/media/video/usbvision/usbvision-i2c.c | 3 | ||||
-rw-r--r-- | drivers/media/video/usbvision/usbvision-video.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/video/usbvision/usbvision-core.c b/drivers/media/video/usbvision/usbvision-core.c index c317ed7a8482..b26b563a0b0a 100644 --- a/drivers/media/video/usbvision/usbvision-core.c +++ b/drivers/media/video/usbvision/usbvision-core.c | |||
@@ -84,7 +84,8 @@ MODULE_PARM_DESC(adjust_Y_Offset, "adjust Y offset display [core]"); | |||
84 | #ifdef USBVISION_DEBUG | 84 | #ifdef USBVISION_DEBUG |
85 | #define PDEBUG(level, fmt, args...) { \ | 85 | #define PDEBUG(level, fmt, args...) { \ |
86 | if (core_debug & (level)) \ | 86 | if (core_debug & (level)) \ |
87 | info("[%s:%d] " fmt, __func__, __LINE__ , ## args); \ | 87 | printk(KERN_INFO KBUILD_MODNAME ":[%s:%d] " fmt, \ |
88 | __func__, __LINE__ , ## args); \ | ||
88 | } | 89 | } |
89 | #else | 90 | #else |
90 | #define PDEBUG(level, fmt, args...) do {} while(0) | 91 | #define PDEBUG(level, fmt, args...) do {} while(0) |
diff --git a/drivers/media/video/usbvision/usbvision-i2c.c b/drivers/media/video/usbvision/usbvision-i2c.c index a6d00858b07e..92427fdc1459 100644 --- a/drivers/media/video/usbvision/usbvision-i2c.c +++ b/drivers/media/video/usbvision/usbvision-i2c.c | |||
@@ -47,7 +47,8 @@ MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]"); | |||
47 | 47 | ||
48 | #define PDEBUG(level, fmt, args...) { \ | 48 | #define PDEBUG(level, fmt, args...) { \ |
49 | if (i2c_debug & (level)) \ | 49 | if (i2c_debug & (level)) \ |
50 | info("[%s:%d] " fmt, __func__, __LINE__ , ## args); \ | 50 | printk(KERN_INFO KBUILD_MODNAME ":[%s:%d] " fmt, \ |
51 | __func__, __LINE__ , ## args); \ | ||
51 | } | 52 | } |
52 | 53 | ||
53 | static int usbvision_i2c_write(struct usb_usbvision *usbvision, unsigned char addr, char *buf, | 54 | static int usbvision_i2c_write(struct usb_usbvision *usbvision, unsigned char addr, char *buf, |
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c index 782ee643601c..e10b256aeba4 100644 --- a/drivers/media/video/usbvision/usbvision-video.c +++ b/drivers/media/video/usbvision/usbvision-video.c | |||
@@ -98,7 +98,8 @@ USBVISION_DRIVER_VERSION_PATCHLEVEL) | |||
98 | #ifdef USBVISION_DEBUG | 98 | #ifdef USBVISION_DEBUG |
99 | #define PDEBUG(level, fmt, args...) { \ | 99 | #define PDEBUG(level, fmt, args...) { \ |
100 | if (video_debug & (level)) \ | 100 | if (video_debug & (level)) \ |
101 | info("[%s:%d] " fmt, __func__, __LINE__ , ## args); \ | 101 | printk(KERN_INFO KBUILD_MODNAME ":[%s:%d] " fmt, \ |
102 | __func__, __LINE__ , ## args); \ | ||
102 | } | 103 | } |
103 | #else | 104 | #else |
104 | #define PDEBUG(level, fmt, args...) do {} while(0) | 105 | #define PDEBUG(level, fmt, args...) do {} while(0) |