aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-08-26 12:49:28 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-08-26 12:49:28 +0200
commit60e88a0b1fb3570745c3d6bde1b5fdbd8d2f99e7 (patch)
tree4ee83b6ec1c9da993fa26f428ba1ed68e7763fff
parent01ebcfa35418337c96c46965eb0c6831c2096538 (diff)
downloadnx-libs-60e88a0b1fb3570745c3d6bde1b5fdbd8d2f99e7.tar.gz
nx-libs-60e88a0b1fb3570745c3d6bde1b5fdbd8d2f99e7.tar.bz2
nx-libs-60e88a0b1fb3570745c3d6bde1b5fdbd8d2f99e7.zip
nxcomp/Loop.cpp: We have PrintVersionInfo(), why not use it? Use endl instead of \n for EOLs when streaming application's preamble to stderr.
-rw-r--r--nxcomp/Loop.cpp15
1 files 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;
}
//