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_2_1_11~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bb74e17b9db1a6bd9a493589cba393c25122ad3;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 f22fd3c89ee..db5b7d9407f 100644 --- a/src/lib/print.c +++ b/src/lib/print.c @@ -478,6 +478,7 @@ void vp_print(FILE *fp, VALUE_PAIR *vp) char buf[1024]; vp_prints(buf, sizeof(buf), vp); + fputc('\t', fp); fputs(buf, fp); fputc('\n', fp); } @@ -490,7 +491,6 @@ void vp_print(FILE *fp, VALUE_PAIR *vp) void vp_printlist(FILE *fp, 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 a5c099de052..4852158e6ba 100644 --- a/src/main/valuepair.c +++ b/src/main/valuepair.c @@ -738,7 +738,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); } @@ -747,7 +746,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 193270eb2c7..885f4dcff0e 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); }