From 998bded52fc428c1a62908a594e04cce69de5a49 Mon Sep 17 00:00:00 2001 From: Juan Carlos Luciani Date: Sat, 18 Nov 2006 12:56:24 +0000 Subject: [PATCH] Changed DbgPrint macro to use syslog() rather than printf(). --- CASA-auth-token/client/autogen.sh | 2 +- CASA-auth-token/client/lib/linux/platform.h | 12 ++++++------ .../client/lib/mechanisms/krb5/linux/platform.h | 10 +++++----- .../client/lib/mechanisms/pwd/linux/platform.h | 12 ++++++------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/CASA-auth-token/client/autogen.sh b/CASA-auth-token/client/autogen.sh index 19ad55ec..83ca48b1 100755 --- a/CASA-auth-token/client/autogen.sh +++ b/CASA-auth-token/client/autogen.sh @@ -6,7 +6,7 @@ test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` cd $srcdir -PROJECT=CASA_auth_token_native +PROJECT=CASA_auth_token_client TEST_TYPE=-f FILE=configure.in diff --git a/CASA-auth-token/client/lib/linux/platform.h b/CASA-auth-token/client/lib/linux/platform.h index db1b11b4..f6521415 100644 --- a/CASA-auth-token/client/lib/linux/platform.h +++ b/CASA-auth-token/client/lib/linux/platform.h @@ -57,22 +57,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_AuthToken %s", printBuff); \ + fprintf(stderr, "CASA_AuthToken %s", printBuff); \ } \ -} -/*#define DbgTrace(LEVEL, X, Y) { \ +}*/ +#define DbgTrace(LEVEL, X, Y) { \ if (LEVEL == 0 || DebugLevel >= LEVEL) \ { \ - openlog("CASA_AuthToken", LOG_CONS | LOG_NOWAIT | LOG_ODELAY, LOG_USER); \ + openlog("CASA_AuthToken", LOG_CONS | LOG_NOWAIT | LOG_ODELAY, LOG_USER); \ syslog(LOG_USER | LOG_INFO, X, Y); \ closelog(); \ } \ -}*/ +} // diff --git a/CASA-auth-token/client/lib/mechanisms/krb5/linux/platform.h b/CASA-auth-token/client/lib/mechanisms/krb5/linux/platform.h index 72d3c254..e8490077 100644 --- a/CASA-auth-token/client/lib/mechanisms/krb5/linux/platform.h +++ b/CASA-auth-token/client/lib/mechanisms/krb5/linux/platform.h @@ -52,22 +52,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_Krb5Mech %s", printBuff); \ } \ -} -/*#define DbgTrace(LEVEL, X, Y) { \ +}*/ +#define DbgTrace(LEVEL, X, Y) { \ if (LEVEL == 0 || DebugLevel >= LEVEL) \ { \ - openlog("CASA_Krb5Mech", LOG_CONS | LOG_NOWAIT | LOG_ODELAY, LOG_USER); \ + openlog("CASA_Krb5Mech", LOG_CONS | LOG_NOWAIT | LOG_ODELAY, LOG_USER); \ syslog(LOG_USER | LOG_INFO, X, Y); \ closelog(); \ } \ -}*/ +} // diff --git a/CASA-auth-token/client/lib/mechanisms/pwd/linux/platform.h b/CASA-auth-token/client/lib/mechanisms/pwd/linux/platform.h index f2f6c09e..f0fdeabb 100644 --- a/CASA-auth-token/client/lib/mechanisms/pwd/linux/platform.h +++ b/CASA-auth-token/client/lib/mechanisms/pwd/linux/platform.h @@ -50,22 +50,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_PwMech %s", printBuff); \ + fprintf(stderr, "CASA_PwMech %s", printBuff); \ } \ -} -/*#define DbgTrace(LEVEL, X, Y) { \ +}*/ +#define DbgTrace(LEVEL, X, Y) { \ if (LEVEL == 0 || DebugLevel >= LEVEL) \ { \ - openlog("CASA_PwMech", LOG_CONS | LOG_NOWAIT | LOG_ODELAY, LOG_USER); \ + openlog("CASA_PwMech", LOG_CONS | LOG_NOWAIT | LOG_ODELAY, LOG_USER); \ syslog(LOG_USER | LOG_INFO, X, Y); \ closelog(); \ } \ -}*/ +} //