Remove the unnecessary macros ENTRY_NESTING_SUPPORT, ENTRY_NESTING,
EXIT_NESTING, and __current_nesting_level().
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I12c3c9a253b1dc0929a78c2f807b2a94434d3496
Reviewed-on: http://review.whamcloud.com/11984
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Tested-by: Oleg Drokin <oleg.drokin@intel.com>
#if BITS_PER_LONG > 32
#define RETURN(rc) \
do { \
#if BITS_PER_LONG > 32
#define RETURN(rc) \
do { \
if (cfs_cdebug_show(D_TRACE, DEBUG_SUBSYSTEM)) { \
LIBCFS_DEBUG_MSG_DATA_DECL(msgdata, D_TRACE, NULL); \
return (typeof(rc))libcfs_log_return(&msgdata, \
if (cfs_cdebug_show(D_TRACE, DEBUG_SUBSYSTEM)) { \
LIBCFS_DEBUG_MSG_DATA_DECL(msgdata, D_TRACE, NULL); \
return (typeof(rc))libcfs_log_return(&msgdata, \
*/
#define RETURN(rc) \
do { \
*/
#define RETURN(rc) \
do { \
if (cfs_cdebug_show(D_TRACE, DEBUG_SUBSYSTEM)) { \
typeof(rc) __rc = (rc); \
LIBCFS_DEBUG_MSG_DATA_DECL(msgdata, D_TRACE, NULL); \
if (cfs_cdebug_show(D_TRACE, DEBUG_SUBSYSTEM)) { \
typeof(rc) __rc = (rc); \
LIBCFS_DEBUG_MSG_DATA_DECL(msgdata, D_TRACE, NULL); \
} while (0)
#endif /* BITS_PER_LONG > 32 */
} while (0)
#endif /* BITS_PER_LONG > 32 */
+#define ENTRY CDEBUG(D_TRACE, "Process entered\n")
+#define EXIT CDEBUG(D_TRACE, "Process leaving\n")
-#define ENTRY \
-ENTRY_NESTING; \
-do { \
- CDEBUG(D_TRACE, "Process entered\n"); \
-} while (0)
-
-#define EXIT \
-do { \
- CDEBUG(D_TRACE, "Process leaving\n"); \
- EXIT_NESTING; \
-} while(0)
#else /* !CDEBUG_ENTRY_EXIT */
# define GOTO(label, rc) \
#else /* !CDEBUG_ENTRY_EXIT */
# define GOTO(label, rc) \
/* initial pid */
#define LUSTRE_LNET_PID 12345
/* initial pid */
#define LUSTRE_LNET_PID 12345
-#define ENTRY_NESTING_SUPPORT (1)
-#define ENTRY_NESTING do {;} while (0)
-#define EXIT_NESTING do {;} while (0)
-#define __current_nesting_level() (0)
-
/**
* Platform specific declarations for cfs_curproc API (libcfs/curproc.h)
*
/**
* Platform specific declarations for cfs_curproc API (libcfs/curproc.h)
*
/* initial pid */
#define LUSTRE_LNET_PID 12345
/* initial pid */
#define LUSTRE_LNET_PID 12345
-#define ENTRY_NESTING_SUPPORT (1)
-#define ENTRY_NESTING do {;} while (0)
-#define EXIT_NESTING do {;} while (0)
-#define __current_nesting_level() (0)
-
/**
* Platform specific declarations for cfs_curproc API (libcfs/curproc.h)
*
/**
* Platform specific declarations for cfs_curproc API (libcfs/curproc.h)
*
int needed = 85; /* average message length */
int max_nob;
va_list ap;
int needed = 85; /* average message length */
int max_nob;
va_list ap;
int i;
int remain;
int mask = msgdata->msg_mask;
int i;
int remain;
int mask = msgdata->msg_mask;
- depth = __current_nesting_level();
- known_size = strlen(file) + 1 + depth;
+ known_size = strlen(file) + 1;
if (msgdata->msg_fn)
known_size += strlen(msgdata->msg_fn) + 1;
if (msgdata->msg_fn)
known_size += strlen(msgdata->msg_fn) + 1;
debug_buf += sizeof(header);
}
debug_buf += sizeof(header);
}
- /* indent message according to the nesting level */
- while (depth-- > 0) {
- *(debug_buf++) = '.';
- ++ tage->used;
- }
-
strcpy(debug_buf, file);
tage->used += strlen(file) + 1;
debug_buf += strlen(file) + 1;
strcpy(debug_buf, file);
tage->used += strlen(file) + 1;
debug_buf += strlen(file) + 1;