From fa3ec4f0382ffb1c4e670170d8ae7580226ed121 Mon Sep 17 00:00:00 2001 From: bobijam Date: Thu, 13 Sep 2007 03:54:58 +0000 Subject: [PATCH] Branch HEAD b=11686 attachment=12502 i=johann, adilger make liblustre clients CDEBUG_LIMIT rate limiting. --- lnet/include/libcfs/libcfs.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lnet/include/libcfs/libcfs.h b/lnet/include/libcfs/libcfs.h index 613d4fb..4c337a4 100644 --- a/lnet/include/libcfs/libcfs.h +++ b/lnet/include/libcfs/libcfs.h @@ -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...) \ -- 1.8.3.1