Skip to content

Commit

Permalink
staging: panel: Use pr_info(...) rather than printk(KERN_INFO
Browse files Browse the repository at this point in the history
-Added pr_fmt.
-Converted printk(KERN_INFO to pr_info
-Removed embedded message prefixes.

Signed-off-by: Toshiaki Yamane <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Toshiaki Yamane authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent eb073a9 commit 493aa89
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions drivers/staging/panel/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
*
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/module.h>

#include <linux/types.h>
Expand Down Expand Up @@ -2279,12 +2281,12 @@ int panel_init(void)
register_reboot_notifier(&panel_notifier);

if (pprt)
printk(KERN_INFO "Panel driver version " PANEL_VERSION
" registered on parport%d (io=0x%lx).\n", parport,
pprt->port->base);
pr_info("driver version " PANEL_VERSION
" registered on parport%d (io=0x%lx).\n", parport,
pprt->port->base);
else
printk(KERN_INFO "Panel driver version " PANEL_VERSION
" not yet registered\n");
pr_info("driver version " PANEL_VERSION
" not yet registered\n");
/* tells various subsystems about the fact that initialization
is finished */
init_in_progress = 0;
Expand Down

0 comments on commit 493aa89

Please sign in to comment.