From: Joe Perches Date: Sun, 21 Aug 2011 22:56:47 +0000 (-0300) Subject: [media] winbond-cir: Use current logging styles X-Git-Tag: MMI-PSA29.97-13-9~18177^2~251 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8a10ac948545d8a4261728719af39b5dffaf7da;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] winbond-cir: Use current logging styles Add pr_fmt, convert printks to pr_. Signed-off-by: Joe Perches Acked-by: David Härdeman Signed-off-by: Mauro Carvalho Chehab --- 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 #include #include @@ -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; }