intel_menlow: Add pr_fmt and use pr_<level>
authorJoe Perches <joe@perches.com>
Tue, 29 Mar 2011 22:21:44 +0000 (15:21 -0700)
committerMatthew Garrett <mjg@redhat.com>
Fri, 27 May 2011 16:35:49 +0000 (12:35 -0400)
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>
drivers/platform/x86/intel_menlow.c

index eacd5da7dd2434b8475b6e4cc89d9ee6d6145b20..809adea4965f96a8fca6f703fd94b40523d33072 100644 (file)
@@ -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>
@@ -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;