This is the first, small step toward some tweaks that Jeremy and I have
[samba.git] / source / include / smb.h
index dfbe213e57ac140689910d7862f858b59a326997..085c06769bd74ecf57bf2670b48fd0a84bfec2fa 100644 (file)
@@ -100,10 +100,12 @@ typedef unsigned int uint32;
 /* debugging code */
 #ifndef SYSLOG
 #define DEBUG(level,body) ((DEBUGLEVEL>=(level))?(Debug1 body):0)
+#define DEBUGLVL(level) (DEBUGLEVEL>=(level))
 #else
 extern int syslog_level;
 
 #define DEBUG(level,body) ((DEBUGLEVEL>=(level))? (syslog_level = (level), Debug1 body):0)
+#define DEBUGLVL(level) ( DEBUGLEVEL >= (syslog_level=(level)) )
 #endif
 
 /* this defines the error codes that receive_smb can put in smb_read_error */