Skip to content

Commit

Permalink
re-add xlat_spaces for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 14, 2014
1 parent 84eebc8 commit 2bdf3ca
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main/xlat.c
Expand Up @@ -781,17 +781,12 @@ void xlat_free(void)
rbtree_free(xlat_root);
}

#if 0
#define XLAT_DEBUG(fmt, ...) printf(fmt, ## __VA_ARGS__);printf("\n")
#endif

#ifndef XLAT_DEBUG
#if 0
#ifdef DEBUG_XLAT
#define XLAT_DEBUG DEBUG3
#else
#define XLAT_DEBUG(...)
#endif
#endif

static ssize_t xlat_tokenize_expansion(TALLOC_CTX *ctx, char *fmt, xlat_exp_t **head,
char const **error);
Expand Down Expand Up @@ -1908,6 +1903,10 @@ static char *xlat_getvp(TALLOC_CTX *ctx, REQUEST *request, pair_lists_t list, DI
return vp_aprint(ctx, vp);
}

#ifdef DEBUG_XLAT
static const char *xlat_spaces = " ";
#endif

static char *xlat_aprint(TALLOC_CTX *ctx, REQUEST *request, xlat_exp_t const * const node,
RADIUS_ESCAPE_STRING escape, void *escape_ctx, int lvl)
{
Expand Down

0 comments on commit 2bdf3ca

Please sign in to comment.