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/geodewdt.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/geodewdt.c')
-rw-r--r-- | drivers/watchdog/geodewdt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/watchdog/geodewdt.c b/drivers/watchdog/geodewdt.c index 9b49b125ad5a..19044a39c407 100644 --- a/drivers/watchdog/geodewdt.c +++ b/drivers/watchdog/geodewdt.c | |||
@@ -9,6 +9,7 @@ | |||
9 | * 2 of the License, or (at your option) any later version. | 9 | * 2 of the License, or (at your option) any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
12 | 13 | ||
13 | #include <linux/module.h> | 14 | #include <linux/module.h> |
14 | #include <linux/moduleparam.h> | 15 | #include <linux/moduleparam.h> |
@@ -100,7 +101,7 @@ static int geodewdt_release(struct inode *inode, struct file *file) | |||
100 | geodewdt_disable(); | 101 | geodewdt_disable(); |
101 | module_put(THIS_MODULE); | 102 | module_put(THIS_MODULE); |
102 | } else { | 103 | } else { |
103 | printk(KERN_CRIT "Unexpected close - watchdog is not stopping.\n"); | 104 | pr_crit("Unexpected close - watchdog is not stopping\n"); |
104 | geodewdt_ping(); | 105 | geodewdt_ping(); |
105 | 106 | ||
106 | set_bit(WDT_FLAGS_ORPHAN, &wdt_flags); | 107 | set_bit(WDT_FLAGS_ORPHAN, &wdt_flags); |
@@ -220,7 +221,7 @@ static int __devinit geodewdt_probe(struct platform_device *dev) | |||
220 | 221 | ||
221 | wdt_timer = cs5535_mfgpt_alloc_timer(MFGPT_TIMER_ANY, MFGPT_DOMAIN_WORKING); | 222 | wdt_timer = cs5535_mfgpt_alloc_timer(MFGPT_TIMER_ANY, MFGPT_DOMAIN_WORKING); |
222 | if (!wdt_timer) { | 223 | if (!wdt_timer) { |
223 | printk(KERN_ERR "geodewdt: No timers were available\n"); | 224 | pr_err("No timers were available\n"); |
224 | return -ENODEV; | 225 | return -ENODEV; |
225 | } | 226 | } |
226 | 227 | ||