Skip to content
Snippets Groups Projects
Commit fa3ec4f0 authored by Bobi Jam's avatar Bobi Jam
Browse files

Branch HEAD

b=11686
attachment=12502
i=johann, adilger

make liblustre clients CDEBUG_LIMIT rate limiting.
parent 2048007b
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ typedef struct {
/* Controlled via configure key */
/* #define CDEBUG_ENABLED */
#ifdef __KERNEL__
#if defined(__KERNEL__) || (defined(__arch_lib__) && !defined(LUSTRE_UTILS))
#ifdef CDEBUG_ENABLED
#define __CDEBUG(cdls, mask, format, a...) \
......@@ -204,20 +204,6 @@ do { \
#warning "CDEBUG IS DISABLED. THIS SHOULD NEVER BE DONE FOR PRODUCTION!"
#endif
#elif defined(__arch_lib__) && !defined(LUSTRE_UTILS)
#define CDEBUG(mask, format, a...) \
do { \
if (((mask) & D_CANTMASK) != 0 || \
((libcfs_debug & (mask)) != 0 && \
(libcfs_subsystem_debug & DEBUG_SUBSYSTEM) != 0)) \
libcfs_debug_msg(NULL, DEBUG_SUBSYSTEM, mask, \
__FILE__, __FUNCTION__, __LINE__, \
format, ## a); \
} while (0)
#define CDEBUG_LIMIT CDEBUG
#else
#define CDEBUG(mask, format, a...) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment