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/at91rm9200_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/at91rm9200_wdt.c')
-rw-r--r-- | drivers/watchdog/at91rm9200_wdt.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/watchdog/at91rm9200_wdt.c b/drivers/watchdog/at91rm9200_wdt.c index b3046dc4b56c..3ecd246d2cfd 100644 --- a/drivers/watchdog/at91rm9200_wdt.c +++ b/drivers/watchdog/at91rm9200_wdt.c | |||
@@ -9,6 +9,8 @@ | |||
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 | ||
13 | |||
12 | #include <linux/bitops.h> | 14 | #include <linux/bitops.h> |
13 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
14 | #include <linux/fs.h> | 16 | #include <linux/fs.h> |
@@ -209,8 +211,8 @@ static int __devinit at91wdt_probe(struct platform_device *pdev) | |||
209 | if (res) | 211 | if (res) |
210 | return res; | 212 | return res; |
211 | 213 | ||
212 | printk(KERN_INFO "AT91 Watchdog Timer enabled (%d seconds%s)\n", | 214 | pr_info("AT91 Watchdog Timer enabled (%d seconds%s)\n", |
213 | wdt_time, nowayout ? ", nowayout" : ""); | 215 | wdt_time, nowayout ? ", nowayout" : ""); |
214 | return 0; | 216 | return 0; |
215 | } | 217 | } |
216 | 218 | ||
@@ -268,8 +270,8 @@ static int __init at91_wdt_init(void) | |||
268 | if not reset to the default */ | 270 | if not reset to the default */ |
269 | if (at91_wdt_settimeout(wdt_time)) { | 271 | if (at91_wdt_settimeout(wdt_time)) { |
270 | at91_wdt_settimeout(WDT_DEFAULT_TIME); | 272 | at91_wdt_settimeout(WDT_DEFAULT_TIME); |
271 | pr_info("at91_wdt: wdt_time value must be 1 <= wdt_time <= 256" | 273 | pr_info("wdt_time value must be 1 <= wdt_time <= 256, using %d\n", |
272 | ", using %d\n", wdt_time); | 274 | wdt_time); |
273 | } | 275 | } |
274 | 276 | ||
275 | return platform_driver_register(&at91wdt_driver); | 277 | return platform_driver_register(&at91wdt_driver); |