diff options
author | Joe Perches <joe@perches.com> | 2011-08-21 18:56:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-03 20:02:52 -0400 |
commit | 8af443e581ab57a6a38f595eb40be3514ea55195 (patch) | |
tree | ceb43d2544308cb1eac95b238680b1892efc5f3b /drivers/media/video/bt8xx/bttv-gpio.c | |
parent | d8a10ac948545d8a4261728719af39b5dffaf7da (diff) |
[media] bt8xx: Use current logging styles
This converts some messages that were emitted at
KERN_INFO to KERN_DEBUG. All of these messages
were guarded by bttv_debug tests.
Add pr_fmt.
Convert printks to pr_<level>
Convert printks without KERN_<level> to appropriate pr_<level>.
Removed embedded prefixes when pr_fmt was added.
Whitespace cleanups when around other conversions.
Macros coded with if statements should be do { if... } while (0)
so the macros can be used in other if tests.
Use ##__VA_ARGS__ for variadic macro as well.
Coalesce format strings.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-gpio.c')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-gpio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/bt8xx/bttv-gpio.c b/drivers/media/video/bt8xx/bttv-gpio.c index 13ce72c04b33..922e8233fd0b 100644 --- a/drivers/media/video/bt8xx/bttv-gpio.c +++ b/drivers/media/video/bt8xx/bttv-gpio.c | |||
@@ -26,6 +26,8 @@ | |||
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
30 | |||
29 | #include <linux/module.h> | 31 | #include <linux/module.h> |
30 | #include <linux/init.h> | 32 | #include <linux/init.h> |
31 | #include <linux/delay.h> | 33 | #include <linux/delay.h> |
@@ -99,7 +101,7 @@ int bttv_sub_add_device(struct bttv_core *core, char *name) | |||
99 | kfree(sub); | 101 | kfree(sub); |
100 | return err; | 102 | return err; |
101 | } | 103 | } |
102 | printk("bttv%d: add subdevice \"%s\"\n", core->nr, dev_name(&sub->dev)); | 104 | pr_info("%d: add subdevice \"%s\"\n", core->nr, dev_name(&sub->dev)); |
103 | list_add_tail(&sub->list,&core->subs); | 105 | list_add_tail(&sub->list,&core->subs); |
104 | return 0; | 106 | return 0; |
105 | } | 107 | } |