autofs4: use pr_xxx() macros directly for logging
[linux-2.6-block.git] / fs / autofs4 / autofs_i.h
index 9a122129192f8e985428855b870b8517ea6f1858..f0d268b97d19657929ac2f50cd3bc0e1a80436c7 100644 (file)
 
 /* #define DEBUG */
 
-#define DPRINTK(fmt, ...)                              \
-       pr_debug(KBUILD_MODNAME ":pid:%d:%s: " fmt,     \
-               current->pid, __func__, ##__VA_ARGS__)
-
-#define AUTOFS_WARN(fmt, ...)                          \
-       pr_warn(KBUILD_MODNAME ":pid:%d:%s: " fmt,      \
-               current->pid, __func__, ##__VA_ARGS__)
-
-#define AUTOFS_ERROR(fmt, ...)                         \
-       pr_err(KBUILD_MODNAME ":pid:%d:%s: " fmt,       \
-               current->pid, __func__, ##__VA_ARGS__)
+#ifdef pr_fmt
+#undef pr_fmt
+#endif
+#define pr_fmt(fmt) KBUILD_MODNAME ":pid:%d:%s: " fmt, current->pid, __func__
 
 /*
  * Unified info structure.  This is pointed to by both the dentry and