#if BITS_PER_LONG > 32
#define RETURN(rc) \
do { \
- EXIT_NESTING; \
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 { \
- EXIT_NESTING; \
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 */
+#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) \
/* 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)
*
/* 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)
*
int needed = 85; /* average message length */
int max_nob;
va_list ap;
- int depth;
int i;
int remain;
int mask = msgdata->msg_mask;
goto console;
}
- 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;
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;