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>
This commit is contained in:

committed by
Wim Van Sebroeck

szülő
7cbc353540
commit
27c766aaac
@@ -17,6 +17,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/fs.h>
|
||||
@@ -114,8 +116,7 @@ static int ath79_wdt_release(struct inode *inode, struct file *file)
|
||||
if (test_bit(WDT_FLAGS_EXPECT_CLOSE, &wdt_flags))
|
||||
ath79_wdt_disable();
|
||||
else {
|
||||
pr_crit(DRIVER_NAME ": device closed unexpectedly, "
|
||||
"watchdog timer will not stop!\n");
|
||||
pr_crit("device closed unexpectedly, watchdog timer will not stop!\n");
|
||||
ath79_wdt_keepalive();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user