[PATCH rtems-tools v2 09/10] CoverageWriterTSIM.cc: Fix formatting
Ryan Long
ryan.long at oarcorp.com
Fri Sep 10 18:03:14 UTC 2021
---
tester/covoar/CoverageWriterTSIM.cc | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/tester/covoar/CoverageWriterTSIM.cc b/tester/covoar/CoverageWriterTSIM.cc
index 9ec12e4..ed9da96 100644
--- a/tester/covoar/CoverageWriterTSIM.cc
+++ b/tester/covoar/CoverageWriterTSIM.cc
@@ -29,15 +29,15 @@ namespace Coverage {
void CoverageWriterTSIM::writeFile(
const std::string& file,
- CoverageMapBase* coverage,
- uint32_t lowAddress,
- uint32_t highAddress
+ CoverageMapBase* coverage,
+ uint32_t lowAddress,
+ uint32_t highAddress
)
{
- uint32_t a;
- int cover;
+ uint32_t a;
+ int cover;
std::ofstream coverageFile;
- int i;
+ int i;
/*
* read the file and update the coverage map passed in
@@ -54,23 +54,23 @@ namespace Coverage {
if ( coverageFile.fail() ) {
break;
}
+
for ( i = 0; i < 0x80; i += 4 ) {
- cover = ((coverage->wasExecuted( a + i )) ? 1 : 0);
+ cover = ( ( coverage->wasExecuted( a + i ) ) ? 1 : 0 );
coverageFile << cover << " ";
if ( coverageFile.fail() ) {
std::ostringstream what;
what << "write to " << file
<< " at address 0x"
- << std::hex << std::setfill('0')
- << std::setw(8) << a
- << std::setfill(' ') << std::dec
+ << std::hex << std::setfill( '0' )
+ << std::setw( 8 ) << a
+ << std::setfill( ' ' ) << std::dec
<< "failed";
throw rld::error( what, "CoverageWriterTSIM::writeFile" );
}
}
coverageFile << std::endl;
}
-
}
}
--
1.8.3.1
More information about the devel
mailing list