Whamcloud - gitweb
LU-4655 libcfs: properly (un)define CDEBUG_ENTRY_EXIT 17/9517/2
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 5 Mar 2014 22:06:55 +0000 (16:06 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Mar 2014 00:02:38 +0000 (00:02 +0000)
commitf1685b42bb059af99c31fd5e5b8c68a41361a1d0
treeecaa9550a7145341a9513e5a044365557d6a88bf
parent117604e197d54e5a986facfcfc738afa290ad6c5
LU-4655 libcfs: properly (un)define CDEBUG_ENTRY_EXIT

In lustre-libcfs.m4 we defined CDEBUG_ENTRY_EXIT to 1 or 0 according
to whether libcfs-trace was enabled. But in libcfs_debug.h we tested
CDEBUG_ENTRY_EXIT using #ifdef and enabled the trace macros
accrodingly. Fix this and use CDEBUG_ENTRY_EXIT to control GOTO()
tracing as well. The ability to properly disable these macros will
make some static analyses easier.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ia016b4ddd45f8c39704a84908665757aa17bd3d2
Reviewed-on: http://review.whamcloud.com/9517
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/libcfs_debug.h