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/omap_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/omap_wdt.c')
-rw-r--r-- | drivers/watchdog/omap_wdt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index d19ff5145e82..8285d65cd207 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c | |||
@@ -26,6 +26,8 @@ | |||
26 | * Use the driver model and standard identifiers; handle bigger timeouts. | 26 | * Use the driver model and standard identifiers; handle bigger timeouts. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
30 | |||
29 | #include <linux/module.h> | 31 | #include <linux/module.h> |
30 | #include <linux/types.h> | 32 | #include <linux/types.h> |
31 | #include <linux/kernel.h> | 33 | #include <linux/kernel.h> |
@@ -183,7 +185,7 @@ static int omap_wdt_release(struct inode *inode, struct file *file) | |||
183 | 185 | ||
184 | pm_runtime_put_sync(wdev->dev); | 186 | pm_runtime_put_sync(wdev->dev); |
185 | #else | 187 | #else |
186 | printk(KERN_CRIT "omap_wdt: Unexpected close, not stopping!\n"); | 188 | pr_crit("Unexpected close, not stopping!\n"); |
187 | #endif | 189 | #endif |
188 | wdev->omap_wdt_users = 0; | 190 | wdev->omap_wdt_users = 0; |
189 | 191 | ||