Skip to content

Commit

Permalink
backlight: generic_bl: use pr_info() instead of printk()
Browse files Browse the repository at this point in the history
Use pr_info() instead of printk() to allow dynamic debugging.  The pr_fmt
prefix for pr_ macros is used.  Also fix checkpatch warnings as below:

WARNING: printk() should include KERN_ facility level

[akpm@linux-foundation.org: use KBUILD_MODNAME, per Joe]
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed May 29, 2012
1 parent 31e6432 commit 8c7610f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/video/backlight/generic_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
Expand Down Expand Up @@ -106,7 +108,7 @@ static int genericbl_probe(struct platform_device *pdev)

generic_backlight_device = bd;

printk("Generic Backlight Driver Initialized.\n");
pr_info("Generic Backlight Driver Initialized.\n");
return 0;
}

Expand All @@ -120,7 +122,7 @@ static int genericbl_remove(struct platform_device *pdev)

backlight_device_unregister(bd);

printk("Generic Backlight Driver Unloaded\n");
pr_info("Generic Backlight Driver Unloaded\n");
return 0;
}

Expand Down

0 comments on commit 8c7610f

Please sign in to comment.