Repository: trafficserver Updated Branches: refs/heads/master 9a80e8757 -> 457a0b80e
TS-2932: format the build information consistently Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/457a0b80 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/457a0b80 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/457a0b80 Branch: refs/heads/master Commit: 457a0b80e8c2671bc55c1474b83e6fc21617b831 Parents: 9a80e87 Author: James Peach <[email protected]> Authored: Tue Jul 22 12:58:35 2014 -0700 Committer: James Peach <[email protected]> Committed: Tue Jul 22 12:58:35 2014 -0700 ---------------------------------------------------------------------- lib/ts/Version.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/457a0b80/lib/ts/Version.cc ---------------------------------------------------------------------- diff --git a/lib/ts/Version.cc b/lib/ts/Version.cc index a4423fc..8bb377b 100644 --- a/lib/ts/Version.cc +++ b/lib/ts/Version.cc @@ -83,10 +83,6 @@ AppVersionInfo::setup(const char *pkg_name, const char *app_name, const char *ap snprintf(BldPersonStr, sizeof(BldPersonStr), "%s", build_person); snprintf(BldCompileFlagsStr, sizeof(BldCompileFlagsStr), "%s", build_cflags); - snprintf(FullVersionInfoStr, sizeof(FullVersionInfoStr), - "%s - %s - %s - (build # %d%d%d on %s at %s)", - PkgStr, AppStr, VersionStr, month, day, hour, build_date, build_time); - ///////////////////////////////////////////////////////////// // the manager doesn't like empty strings, so prevent them // ///////////////////////////////////////////////////////////// @@ -111,5 +107,9 @@ AppVersionInfo::setup(const char *pkg_name, const char *app_name, const char *ap if (FullVersionInfoStr[0] == '\0') ink_strlcpy(FullVersionInfoStr, "?", sizeof(FullVersionInfoStr)); + snprintf(FullVersionInfoStr, sizeof(FullVersionInfoStr), + "%s - %s - %s - (build # %s on %s at %s)", + PkgStr, AppStr, VersionStr, BldNumStr, BldDateStr, BldTimeStr); + defined = 1; }
