X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcore%2Ftracing%2FTraceWriter.cpp;fp=source%2Fcore%2Ftracing%2FTraceWriter.cpp;h=6111526eecbcc464fc9a4a9d82800d3d711f2b13;hp=0fa28a1e0f6da3ca80abdb62fedf7db6c12c481d;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/core/tracing/TraceWriter.cpp b/source/core/tracing/TraceWriter.cpp index 0fa28a1..6111526 100644 --- a/source/core/tracing/TraceWriter.cpp +++ b/source/core/tracing/TraceWriter.cpp @@ -47,7 +47,7 @@ TraceWriter::TraceWriter(const char* fileName, const int maxSize) : } void TraceWriter::setup(const char* fileName, const Configuration& configuration) -throw() { +{ int maxSize = a_maxSize; bool clean = true; @@ -74,7 +74,7 @@ throw() { } void TraceWriter::setup(const char* fileName, const int maxSize, const bool clean) -throw() { +{ ssize_t r; if(a_stream != -1) { @@ -127,7 +127,7 @@ throw() { } void TraceWriter::attach(TraceWriterObserver* observer) -throw() { +{ if(observer != NULL) { a_observed = true; a_observers.push_back(observer); @@ -138,7 +138,7 @@ throw() { } void TraceWriter::printResume() -throw() { +{ cout << "Traces file ..................................: " << a_outputFile << endl; cout << "Backup copy .................................: " << a_outputOldFile << endl; cout << "Files size (Kbytes) ..........................: " << (a_maxSize >> 10) << endl; @@ -146,7 +146,7 @@ throw() { } void TraceWriter::do_write(int level, const char* text, ...) -throw() { +{ va_list ap; const char* data; int size; @@ -201,7 +201,7 @@ throw() { } const char* TraceWriter::getDate() -throw() { +{ const Microsecond msnow = functions::hardwareClock(); if(a_lastTime == 0 || (msnow - a_lastTime) > 1000000L) { @@ -214,7 +214,7 @@ throw() { } int TraceWriter::prepareOutput(const char* date) -throw() { +{ int result = a_stream; if(result == ErrorStream)