aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-10-20 02:51:46 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-01-08 13:55:17 -0500
commit14a613cc23869d0ca69154bbc5816004fe201b17 (patch)
tree37e69cd07f83f8e3dbb9e3f308dc5dfc530a7d35 /drivers/hwmon
parent2caec1343e0cfe59bacf3d4f67d69ab6283cc75b (diff)
hwmon: (pkgtemp) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt Converted printks to pr_<level> Coalesced any long formats Removed prefixes from formats Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/pkgtemp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hwmon/pkgtemp.c b/drivers/hwmon/pkgtemp.c
index 0798210590bc..21c817d98123 100644
--- a/drivers/hwmon/pkgtemp.c
+++ b/drivers/hwmon/pkgtemp.c
@@ -20,6 +20,8 @@
20 * 02110-1301 USA. 20 * 02110-1301 USA.
21 */ 21 */
22 22
23#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
24
23#include <linux/module.h> 25#include <linux/module.h>
24#include <linux/init.h> 26#include <linux/init.h>
25#include <linux/slab.h> 27#include <linux/slab.h>
@@ -303,7 +305,7 @@ static int __cpuinit pkgtemp_device_add(unsigned int cpu)
303 pdev = platform_device_alloc(DRVNAME, cpu); 305 pdev = platform_device_alloc(DRVNAME, cpu);
304 if (!pdev) { 306 if (!pdev) {
305 err = -ENOMEM; 307 err = -ENOMEM;
306 printk(KERN_ERR DRVNAME ": Device allocation failed\n"); 308 pr_err("Device allocation failed\n");
307 goto exit; 309 goto exit;
308 } 310 }
309 311
@@ -315,8 +317,7 @@ static int __cpuinit pkgtemp_device_add(unsigned int cpu)
315 317
316 err = platform_device_add(pdev); 318 err = platform_device_add(pdev);
317 if (err) { 319 if (err) {
318 printk(KERN_ERR DRVNAME ": Device addition failed (%d)\n", 320 pr_err("Device addition failed (%d)\n", err);
319 err);
320 goto exit_device_free; 321 goto exit_device_free;
321 } 322 }
322 323