[PATCH] Add debug function information for easy trace source from debug log

Xun Ni xun.ni at intel.com
Wed May 21 11:27:08 PDT 2014


Currently the debug information doesn't contain the caller function information,
without this, it's hard to find the source code from the log. Add the function will
make it easy to debug.

Signed-off-by: Xun Ni <xun.ni at intel.com>
---
 fs/pmfs/pmfs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/pmfs/pmfs.h b/fs/pmfs/pmfs.h
index 2285412..262fc37 100644
--- a/fs/pmfs/pmfs.h
+++ b/fs/pmfs/pmfs.h
@@ -38,7 +38,7 @@
  */
 #ifdef pr_fmt
 #undef pr_fmt
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) KBUILD_MODNAME " %s: " fmt, __func__
 #endif
 
 /* #define pmfs_dbg(s, args...)         pr_debug(s, ## args) */
-- 
1.7.1




More information about the Linux-pmfs mailing list