Skip to content

Commit

Permalink
Don't use the TEST define for conditional debug printing.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadamowski committed Jan 22, 2012
1 parent ee37b5b commit d989974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/krb5/os/Makefile.in
Expand Up @@ -4,7 +4,7 @@ KRB5_RUN_ENV = @KRB5_RUN_ENV@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
DEFS=
DEFINES=-DLIBDIR=\"$(KRB5_LIBDIR)\" -DDEBUG -DTEST
DEFINES=-DLIBDIR=\"$(KRB5_LIBDIR)\" -DDEBUG
LOCALINCLUDES=-I$(top_srcdir)/util/profile

##DOS##BUILDTOP = ..\..\..
Expand Down
3 changes: 1 addition & 2 deletions src/lib/krb5/os/locate_kdc.c
Expand Up @@ -109,12 +109,11 @@ k5_free_serverlist (struct serverlist *list)
list->nservers = 0;
}

#define TEST
#include <stdarg.h>
static inline void
Tprintf(const char *fmt, ...)
{
#ifdef TEST
#ifdef DEBUG
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
Expand Down

0 comments on commit d989974

Please sign in to comment.