From a5c9b9ecbb3756911b35a0f0bd4e62494aea1003 Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Mon, 22 Nov 2010 16:40:46 +0300 Subject: [PATCH] Use normal cout and cerr while we have only one thread. COUT() and CERR() macros output current time before text, which looks ugly for the welcome message. --- public-trunk/apps/OpenBTS.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public-trunk/apps/OpenBTS.cpp b/public-trunk/apps/OpenBTS.cpp index cf81d91..4e8f861 100644 --- a/public-trunk/apps/OpenBTS.cpp +++ b/public-trunk/apps/OpenBTS.cpp @@ -297,18 +297,18 @@ int main(int argc, char *argv[]) // Catch signal to re-read config if (signal(SIGHUP, signalHandler) == SIG_ERR) { - CERR("Error while setting handler for SIGHUP."); + cerr << "Error while setting handler for SIGHUP."; } // Catch signal to shutdown gracefully if (signal(SIGTERM, signalHandler) == SIG_ERR) { - CERR("Error while setting handler for SIGTERM."); + cerr << "Error while setting handler for SIGTERM."; } // Catch Ctrl-C signal if (signal(SIGINT, signalHandler) == SIG_ERR) { - CERR("Error while setting handler for SIGINT."); + cerr << "Error while setting handler for SIGINT."; } - COUT("\n\n" << gOpenBTSWelcome << "\n"); + cout << endl << endl << gOpenBTSWelcome << endl; if (gConfig.defines("Log.FileName")) { gSetLogFile(gConfig.getStr("Log.FileName"));