diff options
author | Joe Perches <joe@perches.com> | 2012-02-15 18:06:19 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-03-27 13:59:26 -0400 |
commit | 27c766aaacb265d625dc634bf7903f7f9fd0c697 (patch) | |
tree | 06b399d21dec006bc0a3e1c6685b076753e19b94 /drivers/watchdog/pnx4008_wdt.c | |
parent | 7cbc353540c31ffaf65ad44d89b955be0f1d04dc (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/pnx4008_wdt.c')
-rw-r--r-- | drivers/watchdog/pnx4008_wdt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/watchdog/pnx4008_wdt.c b/drivers/watchdog/pnx4008_wdt.c index 1d1de919d615..ae927093cb6d 100644 --- a/drivers/watchdog/pnx4008_wdt.c +++ b/drivers/watchdog/pnx4008_wdt.c | |||
@@ -14,6 +14,8 @@ | |||
14 | * or implied. | 14 | * or implied. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
18 | |||
17 | #include <linux/module.h> | 19 | #include <linux/module.h> |
18 | #include <linux/moduleparam.h> | 20 | #include <linux/moduleparam.h> |
19 | #include <linux/types.h> | 21 | #include <linux/types.h> |
@@ -222,7 +224,7 @@ static long pnx4008_wdt_ioctl(struct file *file, unsigned int cmd, | |||
222 | static int pnx4008_wdt_release(struct inode *inode, struct file *file) | 224 | static int pnx4008_wdt_release(struct inode *inode, struct file *file) |
223 | { | 225 | { |
224 | if (!test_bit(WDT_OK_TO_CLOSE, &wdt_status)) | 226 | if (!test_bit(WDT_OK_TO_CLOSE, &wdt_status)) |
225 | printk(KERN_WARNING "WATCHDOG: Device closed unexpectedly\n"); | 227 | pr_warn("Device closed unexpectedly\n"); |
226 | 228 | ||
227 | wdt_disable(); | 229 | wdt_disable(); |
228 | clk_disable(wdt_clk); | 230 | clk_disable(wdt_clk); |