From 60e88a0b1fb3570745c3d6bde1b5fdbd8d2f99e7 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 26 Aug 2016 12:49:28 +0200 Subject: nxcomp/Loop.cpp: We have PrintVersionInfo(), why not use it? Use endl instead of \n for EOLs when streaming application's preamble to stderr. --- nxcomp/Loop.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp index 7e67e3450..2f7671cc6 100644 --- a/nxcomp/Loop.cpp +++ b/nxcomp/Loop.cpp @@ -13921,15 +13921,18 @@ void PrintProcessInfo() { if (agent == NULL) { - cerr << "\nNXPROXY - Version " << control -> LocalVersionMajor - << "." << control -> LocalVersionMinor << "." - << control -> LocalVersionPatch << "\n\n"; + + cerr << endl; + + PrintVersionInfo(); + + cerr << endl; cerr << GetCopyrightInfo() - << "\n" + << endl << GetOtherCopyrightInfo() - << "\n" - << "See https://github.com/ArcticaProject/nx-libs for more information.\n\n"; + << endl + << "See https://github.com/ArcticaProject/nx-libs for more information." << endl << endl; } // -- cgit v1.2.3