|
From: Marko O. <d0...@us...> - 2010-03-18 21:07:59
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "kdfs".
The branch, make_kdfs_compile has been updated
via 220d6f49eb3796930870a04b9ec525dfcd7cd635 (commit)
from a690f294559e7bfb5569d689ea969eaa1c38f504 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 220d6f49eb3796930870a04b9ec525dfcd7cd635
Author: Marko Obrovac <mar...@in...>
Date: Thu Mar 18 23:06:52 2010 +0100
Improve debugging info - include file name and line number in the output
diff --git a/fs/kdfs/debug_kdfs.h b/fs/kdfs/debug_kdfs.h
index 55b1623..f9a4785 100644
--- a/fs/kdfs/debug_kdfs.h
+++ b/fs/kdfs/debug_kdfs.h
@@ -41,7 +41,7 @@
# define DEBUG(level, format, args...) \
do { \
if (KDFS_DEBUG_LEVEL >= level || level == DBG_PANIC) { \
- /*pr_debug*/printk("%s - (%s) - %d : ", KDFS_PART, __PRETTY_FUNCTION__, \
+ /*pr_debug*/printk("KDFS - %s @ (%s : %d) - %d | ", __func__, __FILE__, __LINE__, \
current->pid) ; \
/*pr_debug*/printk(format, ## args) ; \
} \
@@ -56,8 +56,8 @@ do { \
/* FUNCTION NAME : ENTER and EXIT */
// TODO: redefine the following macros to take into account debug level !
-#define PRINT_FUNCTION_NAME DEBUG(DBG_TRACE, "%s\n", __PRETTY_FUNCTION__)
-#define PRINT_FUNCTION_EXIT DEBUG(DBG_TRACE, "%s exited\n", __PRETTY_FUNCTION__)
+#define PRINT_FUNCTION_NAME DEBUG(DBG_TRACE, "function ENTER\n")
+#define PRINT_FUNCTION_EXIT DEBUG(DBG_TRACE, "function EXIT\n")
/* ASSERT and BUG ON */
@@ -72,8 +72,8 @@ do { \
#define ASSERT(expr) \
do {\
if ( !(expr) ) {\
- pr_debug("PANIC : ASSERT " #expr " failed in %s \
- line %d\n", __PRETTY_FUNCTION__, __LINE__ ); \
+ /*pr_debug*/printk("PANIC : ASSERT " #expr " failed in %s \
+ at %s on line %d\n", __func__, __FILE__, __LINE__ ); \
BUG(); \
} \
} while (0)
-----------------------------------------------------------------------
Summary of changes:
fs/kdfs/debug_kdfs.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
kdfs
|