Repository: trafficserver Updated Branches: refs/heads/master 40f572dad -> 0390f6d31
diags: clang format Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/0390f6d3 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/0390f6d3 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/0390f6d3 Branch: refs/heads/master Commit: 0390f6d31570353c21a337c4322aeea8a7f77b24 Parents: 40f572d Author: James Peach <[email protected]> Authored: Tue Nov 3 21:35:00 2015 -0800 Committer: James Peach <[email protected]> Committed: Tue Nov 3 21:35:00 2015 -0800 ---------------------------------------------------------------------- lib/ts/Diags.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0390f6d3/lib/ts/Diags.cc ---------------------------------------------------------------------- diff --git a/lib/ts/Diags.cc b/lib/ts/Diags.cc index be65572..0157248 100644 --- a/lib/ts/Diags.cc +++ b/lib/ts/Diags.cc @@ -50,16 +50,17 @@ bool DiagsConfigState::enabled[2] = {false, false}; // Global, used for all diagnostics inkcoreapi Diags *diags = NULL; -template<unsigned Size> static void -vprintline(FILE * fp, char (&buffer)[Size], va_list ap) +template <unsigned Size> +static void +vprintline(FILE *fp, char(&buffer)[Size], va_list ap) { - int nbytes; + int nbytes; - nbytes = vfprintf(fp, buffer, ap); - if (nbytes > 0 && buffer[nbytes - 1] != '\n') { - ink_assert(nbytes < Size); - putc('\n', fp); - } + nbytes = vfprintf(fp, buffer, ap); + if (nbytes > 0 && buffer[nbytes - 1] != '\n') { + ink_assert(nbytes < Size); + putc('\n', fp); + } } ////////////////////////////////////////////////////////////////////////////// @@ -396,7 +397,6 @@ Diags::print_va(const char *debug_tag, DiagsLevel diags_level, const SrcLoc *loc #if defined(freebsd) unlock(); #endif - }
