aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/stmp3xxx_wdt.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-02-15 18:06:19 -0500
committerWim Van Sebroeck <wim@iguana.be>2012-03-27 13:59:26 -0400
commit27c766aaacb265d625dc634bf7903f7f9fd0c697 (patch)
tree06b399d21dec006bc0a3e1c6685b076753e19b94 /drivers/watchdog/stmp3xxx_wdt.c
parent7cbc353540c31ffaf65ad44d89b955be0f1d04dc (diff)
watchdog: Use pr_<fmt> and pr_<level>
Use the current logging styles. Make sure all output has a prefix. Add missing newlines. Remove now unnecessary PFX, NAME, and miscellaneous other #defines. Coalesce formats. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/stmp3xxx_wdt.c')
-rw-r--r--drivers/watchdog/stmp3xxx_wdt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/watchdog/stmp3xxx_wdt.c b/drivers/watchdog/stmp3xxx_wdt.c
index e37d81178b9..180941375ce 100644
--- a/drivers/watchdog/stmp3xxx_wdt.c
+++ b/drivers/watchdog/stmp3xxx_wdt.c
@@ -6,6 +6,9 @@
6 * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved. 6 * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.
7 * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved. 7 * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
8 */ 8 */
9
10#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
11
9#include <linux/init.h> 12#include <linux/init.h>
10#include <linux/kernel.h> 13#include <linux/kernel.h>
11#include <linux/fs.h> 14#include <linux/fs.h>
@@ -221,8 +224,7 @@ static int __devinit stmp3xxx_wdt_probe(struct platform_device *pdev)
221 return ret; 224 return ret;
222 } 225 }
223 226
224 printk(KERN_INFO "stmp3xxx watchdog: initialized, heartbeat %d sec\n", 227 pr_info("initialized, heartbeat %d sec\n", heartbeat);
225 heartbeat);
226 228
227 return ret; 229 return ret;
228} 230}