aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/lantiq_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/lantiq_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/lantiq_wdt.c')
-rw-r--r--drivers/watchdog/lantiq_wdt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/watchdog/lantiq_wdt.c b/drivers/watchdog/lantiq_wdt.c
index d3a63be2e28d..83044351042c 100644
--- a/drivers/watchdog/lantiq_wdt.c
+++ b/drivers/watchdog/lantiq_wdt.c
@@ -7,6 +7,8 @@
7 * Based on EP93xx wdt driver 7 * Based on EP93xx wdt driver
8 */ 8 */
9 9
10#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
11
10#include <linux/module.h> 12#include <linux/module.h>
11#include <linux/fs.h> 13#include <linux/fs.h>
12#include <linux/miscdevice.h> 14#include <linux/miscdevice.h>
@@ -160,7 +162,7 @@ ltq_wdt_release(struct inode *inode, struct file *file)
160 if (ltq_wdt_ok_to_close) 162 if (ltq_wdt_ok_to_close)
161 ltq_wdt_disable(); 163 ltq_wdt_disable();
162 else 164 else
163 pr_err("ltq_wdt: watchdog closed without warning\n"); 165 pr_err("watchdog closed without warning\n");
164 ltq_wdt_ok_to_close = 0; 166 ltq_wdt_ok_to_close = 0;
165 clear_bit(0, &ltq_wdt_in_use); 167 clear_bit(0, &ltq_wdt_in_use);
166 168