summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-10-20 06:51:45 +0000
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-01-08 10:55:16 -0800
commit2caec1343e0cfe59bacf3d4f67d69ab6283cc75b (patch)
treec91fd45e35467a4b42621a7c507b4ef0052306d1
parent5713017ec5e1a437ae4d0d196bce46d572eb7e1a (diff)
downloadop-kernel-dev-2caec1343e0cfe59bacf3d4f67d69ab6283cc75b.zip
op-kernel-dev-2caec1343e0cfe59bacf3d4f67d69ab6283cc75b.tar.gz
hwmon: (pcf8591) 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>
-rw-r--r--drivers/hwmon/pcf8591.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hwmon/pcf8591.c b/drivers/hwmon/pcf8591.c
index dc7259d..731b09a 100644
--- a/drivers/hwmon/pcf8591.c
+++ b/drivers/hwmon/pcf8591.c
@@ -18,6 +18,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
@@ -290,8 +292,7 @@ static struct i2c_driver pcf8591_driver = {
static int __init pcf8591_init(void)
{
if (input_mode < 0 || input_mode > 3) {
- printk(KERN_WARNING "pcf8591: invalid input_mode (%d)\n",
- input_mode);
+ pr_warn("invalid input_mode (%d)\n", input_mode);
input_mode = 0;
}
return i2c_add_driver(&pcf8591_driver);
OpenPOWER on IntegriCloud