--- libaitio/inc/aitio.h 2011/12/14 12:22:05 1.13.2.4 +++ libaitio/inc/aitio.h 2011/12/14 15:00:24 1.13.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.13.2.4 2011/12/14 12:22:05 misho Exp $ +* $Id: aitio.h,v 1.13.2.5 2011/12/14 15:00:24 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -790,11 +790,13 @@ inline int io_rwrite(int fd, void * __restrict buf, si /* Debug helper macros */ extern int io_Debug; +#define io_enableDEBUG int io_Debug #define io_initDebug(x) (io_Debug = (x)) #define io_incDebug (io_Debug++) #define io_decDebug (io_Debug--) /* Debug macros */ +#define ioVERBOSE(x) if ((x) <= io_Debug) #define ioTRACE(x) if ((x) <= io_Debug) \ syslog(LOG_DEBUG, "I'm in %s(%d)", __func__, __LINE__) #define ioDEBUG(x, fmt, ...) do { \