--- tester/covoar/TraceReaderLogQEMU.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/tester/covoar/TraceReaderLogQEMU.cc b/tester/covoar/TraceReaderLogQEMU.cc index 7f72168..b1c52a9 100644 --- a/tester/covoar/TraceReaderLogQEMU.cc +++ b/tester/covoar/TraceReaderLogQEMU.cc @@ -68,9 +68,11 @@ bool ReadUntilFound( std::ifstream& file, const char* line ) return false; } - if ( strncmp( discardBuff, line, len ) == 0 ) + if ( strncmp( discardBuff, line, len ) == 0 ) { return true; - } while (1); + } + + } while( 1 ); } namespace Trace { @@ -126,7 +128,7 @@ namespace Trace { // // Discard Header section // - if (! ReadUntilFound( logFile, QEMU_LOG_SECTION_END ) ) { + if ( !ReadUntilFound( logFile, QEMU_LOG_SECTION_END ) ) { std::cerr << "Unable to locate end of log file header" << std::endl; return false; } @@ -134,7 +136,7 @@ namespace Trace { // // Find first IN block // - if (! ReadUntilFound( logFile, QEMU_LOG_IN_KEY )){ + if ( !ReadUntilFound( logFile, QEMU_LOG_IN_KEY ) ) { std::cerr << "Error: Unable to locate first IN: Block in Log file" << std::endl; return false; @@ -149,12 +151,11 @@ namespace Trace { >> first.data; if ( logFile.fail() ) { - std::cerr << "Error Unable to Read Initial First Block" - << std::endl; + std::cerr << "Error Unable to Read Initial First Block" << std::endl; done = true; } - while (!done) { + while ( !done ) { last = first; @@ -166,9 +167,9 @@ namespace Trace { >> last.data; } while( !logFile.fail() ); - nextlogical = objdumpProcessor.getAddressAfter(last.address); + nextlogical = objdumpProcessor.getAddressAfter( last.address ); - if (! ReadUntilFound( logFile, QEMU_LOG_IN_KEY )) { + if ( !ReadUntilFound( logFile, QEMU_LOG_IN_KEY ) ) { done = true; nextExecuted = last; } else { @@ -184,7 +185,7 @@ namespace Trace { // If the nextlogical was not found we are throwing away // the block; otherwise add the block to the trace list. - if (nextlogical != 0) { + if ( nextlogical != 0 ) { TraceList::exitReason_t reason = TraceList::EXIT_REASON_OTHER; if ( objdumpProcessor.IsBranch( last.instruction ) ) { -- 1.8.3.1 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel