]> git.karo-electronics.de Git - linux-beck.git/commitdiff
hwmon: (ibmaem) Use pr_fmt and pr_<level>
authorJoe Perches <joe@perches.com>
Wed, 20 Oct 2010 06:51:38 +0000 (06:51 +0000)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 8 Jan 2011 18:55:13 +0000 (10:55 -0800)
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>
drivers/hwmon/ibmaem.c

index eaee546af19a1c519758783ee66217a1d8bae46d..bc6e2ab3a361d539befcc2055ebcb5a1c119f5a9 100644 (file)
@@ -20,6 +20,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/ipmi.h>
 #include <linux/module.h>
 #include <linux/hwmon.h>
@@ -1090,7 +1092,7 @@ static int __init aem_init(void)
 
        res = driver_register(&aem_driver.driver);
        if (res) {
-               printk(KERN_ERR "Can't register aem driver\n");
+               pr_err("Can't register aem driver\n");
                return res;
        }