autofs4: make autofs log prints consistent
Use the pr_*() print in AUTOFS_*() macros instead of printks and include the module name in log message macros. Also use the AUTOFS_*() macros everywhere instead of raw printks. Signed-off-by: Ian Kent <raven@themaw.net> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -36,15 +36,15 @@
|
||||
/* #define DEBUG */
|
||||
|
||||
#define DPRINTK(fmt, ...) \
|
||||
pr_debug("pid %d: %s: " fmt "\n", \
|
||||
pr_debug(KBUILD_MODNAME ":pid:%d:%s: " fmt "\n",\
|
||||
current->pid, __func__, ##__VA_ARGS__)
|
||||
|
||||
#define AUTOFS_WARN(fmt, ...) \
|
||||
printk(KERN_WARNING "pid %d: %s: " fmt "\n", \
|
||||
pr_warn(KBUILD_MODNAME ":pid:%d:%s: " fmt "\n", \
|
||||
current->pid, __func__, ##__VA_ARGS__)
|
||||
|
||||
#define AUTOFS_ERROR(fmt, ...) \
|
||||
printk(KERN_ERR "pid %d: %s: " fmt "\n", \
|
||||
pr_err(KBUILD_MODNAME ":pid:%d:%s: " fmt "\n", \
|
||||
current->pid, __func__, ##__VA_ARGS__)
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user