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/bcm63xx_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/bcm63xx_wdt.c')
-rw-r--r-- | drivers/watchdog/bcm63xx_wdt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c index 8dc7de641e26..af95b386d8f5 100644 --- a/drivers/watchdog/bcm63xx_wdt.c +++ b/drivers/watchdog/bcm63xx_wdt.c | |||
@@ -10,6 +10,8 @@ | |||
10 | * 2 of the License, or (at your option) any later version. | 10 | * 2 of the License, or (at your option) any later version. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
14 | |||
13 | #include <linux/bitops.h> | 15 | #include <linux/bitops.h> |
14 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
15 | #include <linux/fs.h> | 17 | #include <linux/fs.h> |
@@ -82,7 +84,7 @@ static void bcm63xx_timer_tick(unsigned long unused) | |||
82 | bcm63xx_wdt_hw_start(); | 84 | bcm63xx_wdt_hw_start(); |
83 | mod_timer(&bcm63xx_wdt_device.timer, jiffies + HZ); | 85 | mod_timer(&bcm63xx_wdt_device.timer, jiffies + HZ); |
84 | } else | 86 | } else |
85 | printk(KERN_CRIT PFX ": watchdog will restart system\n"); | 87 | pr_crit("watchdog will restart system\n"); |
86 | } | 88 | } |
87 | 89 | ||
88 | static void bcm63xx_wdt_pet(void) | 90 | static void bcm63xx_wdt_pet(void) |
@@ -126,8 +128,7 @@ static int bcm63xx_wdt_release(struct inode *inode, struct file *file) | |||
126 | if (expect_close == 42) | 128 | if (expect_close == 42) |
127 | bcm63xx_wdt_pause(); | 129 | bcm63xx_wdt_pause(); |
128 | else { | 130 | else { |
129 | printk(KERN_CRIT PFX | 131 | pr_crit("Unexpected close, not stopping watchdog!\n"); |
130 | ": Unexpected close, not stopping watchdog!\n"); | ||
131 | bcm63xx_wdt_start(); | 132 | bcm63xx_wdt_start(); |
132 | } | 133 | } |
133 | clear_bit(0, &bcm63xx_wdt_device.inuse); | 134 | clear_bit(0, &bcm63xx_wdt_device.inuse); |