Switched from using printf() to syslog() in DbgTrace macro.

This commit is contained in:
Juan Carlos Luciani 2006-11-18 13:11:20 +00:00
parent 998bded52f
commit ec831ed16c

View File

@ -51,22 +51,22 @@
// //
// DbgTrace macro define // DbgTrace macro define
// //
#define DbgTrace(LEVEL, X, Y) { \ /*#define DbgTrace(LEVEL, X, Y) { \
char printBuff[256]; \ char printBuff[256]; \
if (LEVEL == 0 || DebugLevel >= LEVEL) \ if (LEVEL == 0 || DebugLevel >= LEVEL) \
{ \ { \
_snprintf(printBuff, sizeof(printBuff), X, Y); \ _snprintf(printBuff, sizeof(printBuff), X, Y); \
fprintf(stderr, "CASA_AuthTokenValidate %s", printBuff); \ fprintf(stderr, "CASA_AuthTokenValidate %s", printBuff); \
} \ } \
} }*/
/*#define DbgTrace(LEVEL, X, Y) { \ #define DbgTrace(LEVEL, X, Y) { \
if (LEVEL == 0 || DebugLevel >= LEVEL) \ if (LEVEL == 0 || DebugLevel >= LEVEL) \
{ \ { \
openlog("CASA_AuthTokenValidate", LOG_CONS | LOG_NOWAIT | LOG_ODELAY, LOG_USER); \ openlog("CASA_AuthTokenValidate", LOG_CONS | LOG_NOWAIT | LOG_ODELAY, LOG_USER); \
syslog(LOG_USER | LOG_INFO, X, Y); \ syslog(LOG_USER | LOG_INFO, X, Y); \
closelog(); \ closelog(); \
} \ } \
}*/ }
// //