RealtimeLogger: Fixed coding guideline issues.

Change-Id: I1172e0c60e2d6e895b4d3f99eb1a023c348bd3b3
This commit is contained in:
Martin Hoffmann
2013-11-11 13:18:26 +01:00
parent 8f0db45dfe
commit cf95437e65
2 changed files with 13 additions and 22 deletions

View File

@ -31,10 +31,10 @@ public:
* @param outputfile The path to the file to write the output to
*/
RealtimeLogger( const fail::ElfSymbol & symbol, const std::string& outputfile ) : m_symbol(symbol), m_outputfile(outputfile) , m_log("RTLogger", false) {
m_ostream.open(m_outputfile.c_str() );
if(!m_ostream.is_open()){
m_log << "Could not open " << m_outputfile.c_str() << " for writing." << std::endl;
}
m_ostream.open(m_outputfile.c_str() );
if(!m_ostream.is_open()){
m_log << "Could not open " << m_outputfile.c_str() << " for writing." << std::endl;
}
}
bool run();