From ec831ed16c1dc56211c3d1656ade8c257f486bde Mon Sep 17 00:00:00 2001 From: Juan Carlos Luciani Date: Sat, 18 Nov 2006 13:11:20 +0000 Subject: [PATCH] Switched from using printf() to syslog() in DbgTrace macro. --- CASA-auth-token/server/AuthTokenValidate/linux/platform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CASA-auth-token/server/AuthTokenValidate/linux/platform.h b/CASA-auth-token/server/AuthTokenValidate/linux/platform.h index 561ba7eb..92c4437a 100644 --- a/CASA-auth-token/server/AuthTokenValidate/linux/platform.h +++ b/CASA-auth-token/server/AuthTokenValidate/linux/platform.h @@ -51,22 +51,22 @@ // // DbgTrace macro define // -#define DbgTrace(LEVEL, X, Y) { \ +/*#define DbgTrace(LEVEL, X, Y) { \ char printBuff[256]; \ if (LEVEL == 0 || DebugLevel >= LEVEL) \ { \ _snprintf(printBuff, sizeof(printBuff), X, Y); \ fprintf(stderr, "CASA_AuthTokenValidate %s", printBuff); \ } \ -} -/*#define DbgTrace(LEVEL, X, Y) { \ +}*/ +#define DbgTrace(LEVEL, X, Y) { \ if (LEVEL == 0 || DebugLevel >= LEVEL) \ { \ openlog("CASA_AuthTokenValidate", LOG_CONS | LOG_NOWAIT | LOG_ODELAY, LOG_USER); \ syslog(LOG_USER | LOG_INFO, X, Y); \ closelog(); \ } \ -}*/ +} //