diff options
author | Joe Perches <joe@perches.com> | 2011-08-21 19:56:47 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-03 20:58:05 -0300 |
commit | d8a10ac948545d8a4261728719af39b5dffaf7da (patch) | |
tree | 30b44a61172d8f6776d9fb84fc98c339cdc59e25 /drivers | |
parent | 7de3461c93a6d65355113cca333723eb8a1a0225 (diff) | |
download | blackbird-obmc-linux-d8a10ac948545d8a4261728719af39b5dffaf7da.tar.gz blackbird-obmc-linux-d8a10ac948545d8a4261728719af39b5dffaf7da.zip |
[media] winbond-cir: Use current logging styles
Add pr_fmt, convert printks to pr_<level>.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/rc/winbond-cir.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c index bec8abc965f7..13f54b51194a 100644 --- a/drivers/media/rc/winbond-cir.c +++ b/drivers/media/rc/winbond-cir.c @@ -41,6 +41,8 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/module.h> #include <linux/pnp.h> #include <linux/interrupt.h> @@ -1155,12 +1157,12 @@ wbcir_init(void) case IR_PROTOCOL_RC6: break; default: - printk(KERN_ERR DRVNAME ": Invalid power-on protocol\n"); + pr_err("Invalid power-on protocol\n"); } ret = pnp_register_driver(&wbcir_driver); if (ret) - printk(KERN_ERR DRVNAME ": Unable to register driver\n"); + pr_err("Unable to register driver\n"); return ret; } |