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/mpcore_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/mpcore_wdt.c')
-rw-r--r-- | drivers/watchdog/mpcore_wdt.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/watchdog/mpcore_wdt.c b/drivers/watchdog/mpcore_wdt.c index 82ccd36e2c90..a7de5f6bf688 100644 --- a/drivers/watchdog/mpcore_wdt.c +++ b/drivers/watchdog/mpcore_wdt.c | |||
@@ -19,6 +19,9 @@ | |||
19 | * (c) Copyright 1995 Alan Cox <alan@lxorguk.ukuu.org.uk> | 19 | * (c) Copyright 1995 Alan Cox <alan@lxorguk.ukuu.org.uk> |
20 | * | 20 | * |
21 | */ | 21 | */ |
22 | |||
23 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
24 | |||
22 | #include <linux/module.h> | 25 | #include <linux/module.h> |
23 | #include <linux/moduleparam.h> | 26 | #include <linux/moduleparam.h> |
24 | #include <linux/types.h> | 27 | #include <linux/types.h> |
@@ -442,9 +445,6 @@ static struct platform_driver mpcore_wdt_driver = { | |||
442 | }, | 445 | }, |
443 | }; | 446 | }; |
444 | 447 | ||
445 | static char banner[] __initdata = KERN_INFO "MPcore Watchdog Timer: 0.1. " | ||
446 | "mpcore_noboot=%d mpcore_margin=%d sec (nowayout= %d)\n"; | ||
447 | |||
448 | static int __init mpcore_wdt_init(void) | 448 | static int __init mpcore_wdt_init(void) |
449 | { | 449 | { |
450 | /* | 450 | /* |
@@ -453,11 +453,12 @@ static int __init mpcore_wdt_init(void) | |||
453 | */ | 453 | */ |
454 | if (mpcore_wdt_set_heartbeat(mpcore_margin)) { | 454 | if (mpcore_wdt_set_heartbeat(mpcore_margin)) { |
455 | mpcore_wdt_set_heartbeat(TIMER_MARGIN); | 455 | mpcore_wdt_set_heartbeat(TIMER_MARGIN); |
456 | printk(KERN_INFO "mpcore_margin value must be 0 < mpcore_margin < 65536, using %d\n", | 456 | pr_info("mpcore_margin value must be 0 < mpcore_margin < 65536, using %d\n", |
457 | TIMER_MARGIN); | 457 | TIMER_MARGIN); |
458 | } | 458 | } |
459 | 459 | ||
460 | printk(banner, mpcore_noboot, mpcore_margin, nowayout); | 460 | pr_info("MPcore Watchdog Timer: 0.1. mpcore_noboot=%d mpcore_margin=%d sec (nowayout= %d)\n", |
461 | mpcore_noboot, mpcore_margin, nowayout); | ||
461 | 462 | ||
462 | return platform_driver_register(&mpcore_wdt_driver); | 463 | return platform_driver_register(&mpcore_wdt_driver); |
463 | } | 464 | } |