trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject trafficserver git commit: diags: clang format
Date Wed, 04 Nov 2015 05:35:10 GMT
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 <jpeach@apache.org>
Authored: Tue Nov 3 21:35:00 2015 -0800
Committer: James Peach <jpeach@apache.org>
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
-
 }
 
 


Mime
View raw message