From: Alan T. DeKok Date: Tue, 31 May 2011 11:20:12 +0000 (+0200) Subject: Move \t into vp_print, just like the last commit X-Git-Tag: release_3_0_0_beta0~790 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8197decb55e6df8f7d40b5db498a46e3af27db9a;p=thirdparty%2Ffreeradius-server.git Move \t into vp_print, just like the last commit --- diff --git a/src/lib/print.c b/src/lib/print.c index 48ca7090992..db47e3ad339 100644 --- a/src/lib/print.c +++ b/src/lib/print.c @@ -530,6 +530,7 @@ void vp_print(FILE *fp, const VALUE_PAIR *vp) char buf[1024]; vp_prints(buf, sizeof(buf), vp); + fputc('\t', fp); fputs(buf, fp); fputc('\n', fp); } @@ -542,7 +543,6 @@ void vp_print(FILE *fp, const VALUE_PAIR *vp) void vp_printlist(FILE *fp, const VALUE_PAIR *vp) { for (; vp; vp = vp->next) { - fprintf(fp, "\t"); vp_print(fp, vp); } } diff --git a/src/main/valuepair.c b/src/main/valuepair.c index ee7dca3ab09..398b998b42d 100644 --- a/src/main/valuepair.c +++ b/src/main/valuepair.c @@ -739,7 +739,6 @@ void debug_pair(VALUE_PAIR *vp) { if (!vp || !debug_flag || !fr_log_fp) return; - fputc('\t', fr_log_fp); vp_print(fr_log_fp, vp); } @@ -748,7 +747,6 @@ void debug_pair_list(VALUE_PAIR *vp) if (!vp || !debug_flag || !fr_log_fp) return; while (vp) { - fputc('\t', fr_log_fp); vp_print(fr_log_fp, vp); vp = vp->next; } diff --git a/src/modules/rlm_digest/rlm_digest.c b/src/modules/rlm_digest/rlm_digest.c index 2f68d73069f..3dbeb4106f7 100644 --- a/src/modules/rlm_digest/rlm_digest.c +++ b/src/modules/rlm_digest/rlm_digest.c @@ -158,7 +158,6 @@ static int digest_fix(REQUEST *request) sub->length = attrlen - 2; if ((debug_flag > 1) && fr_log_fp) { - fputc('\t', fr_log_fp); vp_print(fr_log_fp, sub); }