aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/shwdt.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-02-15 18:06:19 -0500
committerWim Van Sebroeck <wim@iguana.be>2012-03-27 13:59:26 -0400
commit27c766aaacb265d625dc634bf7903f7f9fd0c697 (patch)
tree06b399d21dec006bc0a3e1c6685b076753e19b94 /drivers/watchdog/shwdt.c
parent7cbc353540c31ffaf65ad44d89b955be0f1d04dc (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/shwdt.c')
-rw-r--r--drivers/watchdog/shwdt.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/watchdog/shwdt.c b/drivers/watchdog/shwdt.c
index a267dc078daf..75bd23926476 100644
--- a/drivers/watchdog/shwdt.c
+++ b/drivers/watchdog/shwdt.c
@@ -17,6 +17,9 @@
17 * Added expect close support, made emulated timeout runtime changeable 17 * Added expect close support, made emulated timeout runtime changeable
18 * general cleanups, add some ioctls 18 * general cleanups, add some ioctls
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/platform_device.h> 25#include <linux/platform_device.h>
@@ -440,20 +443,20 @@ static int __init sh_wdt_init(void)
440 clock_division_ratio > 0x7)) { 443 clock_division_ratio > 0x7)) {
441 clock_division_ratio = WTCSR_CKS_4096; 444 clock_division_ratio = WTCSR_CKS_4096;
442 445
443 pr_info("%s: divisor must be 0x5<=x<=0x7, using %d\n", 446 pr_info("divisor must be 0x5<=x<=0x7, using %d\n",
444 DRV_NAME, clock_division_ratio); 447 clock_division_ratio);
445 } 448 }
446 449
447 rc = sh_wdt_set_heartbeat(heartbeat); 450 rc = sh_wdt_set_heartbeat(heartbeat);
448 if (unlikely(rc)) { 451 if (unlikely(rc)) {
449 heartbeat = WATCHDOG_HEARTBEAT; 452 heartbeat = WATCHDOG_HEARTBEAT;
450 453
451 pr_info("%s: heartbeat value must be 1<=x<=3600, using %d\n", 454 pr_info("heartbeat value must be 1<=x<=3600, using %d\n",
452 DRV_NAME, heartbeat); 455 heartbeat);
453 } 456 }
454 457
455 pr_info("%s: configured with heartbeat=%d sec (nowayout=%d)\n", 458 pr_info("configured with heartbeat=%d sec (nowayout=%d)\n",
456 DRV_NAME, heartbeat, nowayout); 459 heartbeat, nowayout);
457 460
458 return platform_driver_register(&sh_wdt_driver); 461 return platform_driver_register(&sh_wdt_driver);
459} 462}