Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix -Werror warning
  • Loading branch information
alandekok committed Jul 13, 2013
1 parent 7ffa469 commit 5ca3387
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/xlat.c
Expand Up @@ -527,7 +527,7 @@ void xlat_free(void)
rbtree_free(xlat_root);
}

#if 0
#if 1

This comment has been minimized.

Copy link
@arr2036

arr2036 Jul 13, 2013

Member

Can we just make these level 4 debug statements?

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

Expand Down Expand Up @@ -1741,7 +1741,9 @@ static char *xlat_aprint(TALLOC_CTX *ctx, REQUEST *request, xlat_exp_t const * c
* Some attributes are virtual <sigh>
*/
str = xlat_getvp(ctx, ref, node->list, node->da, node->tag, node->num, true);
if (str) XLAT_DEBUG("expand attr %s --> '%s'", node->da->name, str);
if (str) {
XLAT_DEBUG("expand attr %s --> '%s'", node->da->name, str);
}
break;

case XLAT_VIRTUAL:
Expand Down

0 comments on commit 5ca3387

Please sign in to comment.