diff options
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-vbi.c')
| -rw-r--r-- | drivers/media/video/bt8xx/bttv-vbi.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/media/video/bt8xx/bttv-vbi.c b/drivers/media/video/bt8xx/bttv-vbi.c index e79a402fa6cd..b433267d9aa9 100644 --- a/drivers/media/video/bt8xx/bttv-vbi.c +++ b/drivers/media/video/bt8xx/bttv-vbi.c | |||
| @@ -23,6 +23,8 @@ | |||
| 23 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 23 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 24 | */ | 24 | */ |
| 25 | 25 | ||
| 26 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
| 27 | |||
| 26 | #include <linux/module.h> | 28 | #include <linux/module.h> |
| 27 | #include <linux/errno.h> | 29 | #include <linux/errno.h> |
| 28 | #include <linux/fs.h> | 30 | #include <linux/fs.h> |
| @@ -65,8 +67,11 @@ MODULE_PARM_DESC(vbi_debug,"vbi code debug messages, default is 0 (no)"); | |||
| 65 | #ifdef dprintk | 67 | #ifdef dprintk |
| 66 | # undef dprintk | 68 | # undef dprintk |
| 67 | #endif | 69 | #endif |
| 68 | #define dprintk(fmt, arg...) if (vbi_debug) \ | 70 | #define dprintk(fmt, ...) \ |
| 69 | printk(KERN_DEBUG "bttv%d/vbi: " fmt, btv->c.nr , ## arg) | 71 | do { \ |
| 72 | if (vbi_debug) \ | ||
| 73 | pr_debug("%d: " fmt, btv->c.nr, ##__VA_ARGS__); \ | ||
| 74 | } while (0) | ||
| 70 | 75 | ||
| 71 | #define IMAGE_SIZE(fmt) \ | 76 | #define IMAGE_SIZE(fmt) \ |
| 72 | (((fmt)->count[0] + (fmt)->count[1]) * (fmt)->samples_per_line) | 77 | (((fmt)->count[0] + (fmt)->count[1]) * (fmt)->samples_per_line) |
