Skip to content

Commit

Permalink
intel_menlow: Add pr_fmt and use pr_<level>
Browse files Browse the repository at this point in the history
Add pr_fmt to prefix the logging messages.
Convert printk to pr_<level>.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Joe Perches authored and Matthew Garrett committed May 27, 2011
1 parent 9ab2398 commit 4686f6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/platform/x86/intel_menlow.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
* to get/set bandwidth.
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
Expand Down Expand Up @@ -135,8 +137,7 @@ static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev,
acpi_evaluate_integer(handle, MEMORY_SET_BANDWIDTH, &arg_list,
&temp);

printk(KERN_INFO
"Bandwidth value was %ld: status is %d\n", state, status);
pr_info("Bandwidth value was %ld: status is %d\n", state, status);
if (ACPI_FAILURE(status))
return -EFAULT;

Expand Down

0 comments on commit 4686f6d

Please sign in to comment.