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/sa1100_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/sa1100_wdt.c')
-rw-r--r-- | drivers/watchdog/sa1100_wdt.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/watchdog/sa1100_wdt.c b/drivers/watchdog/sa1100_wdt.c index 016245419fad..d54e04df45e4 100644 --- a/drivers/watchdog/sa1100_wdt.c +++ b/drivers/watchdog/sa1100_wdt.c | |||
@@ -17,6 +17,9 @@ | |||
17 | * | 17 | * |
18 | * 27/11/2000 Initial release | 18 | * 27/11/2000 Initial release |
19 | */ | 19 | */ |
20 | |||
21 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
22 | |||
20 | #include <linux/module.h> | 23 | #include <linux/module.h> |
21 | #include <linux/moduleparam.h> | 24 | #include <linux/moduleparam.h> |
22 | #include <linux/types.h> | 25 | #include <linux/types.h> |
@@ -66,7 +69,7 @@ static int sa1100dog_open(struct inode *inode, struct file *file) | |||
66 | */ | 69 | */ |
67 | static int sa1100dog_release(struct inode *inode, struct file *file) | 70 | static int sa1100dog_release(struct inode *inode, struct file *file) |
68 | { | 71 | { |
69 | printk(KERN_CRIT "WATCHDOG: Device closed - timer will not stop\n"); | 72 | pr_crit("Device closed - timer will not stop\n"); |
70 | clear_bit(1, &sa1100wdt_users); | 73 | clear_bit(1, &sa1100wdt_users); |
71 | return 0; | 74 | return 0; |
72 | } | 75 | } |
@@ -169,9 +172,8 @@ static int __init sa1100dog_init(void) | |||
169 | 172 | ||
170 | ret = misc_register(&sa1100dog_miscdev); | 173 | ret = misc_register(&sa1100dog_miscdev); |
171 | if (ret == 0) | 174 | if (ret == 0) |
172 | printk(KERN_INFO | 175 | pr_info("SA1100/PXA2xx Watchdog Timer: timer margin %d sec\n", |
173 | "SA1100/PXA2xx Watchdog Timer: timer margin %d sec\n", | 176 | margin); |
174 | margin); | ||
175 | return ret; | 177 | return ret; |
176 | } | 178 | } |
177 | 179 | ||