[PATCH rtems-tools v2 05/10] CoverageWriterRTEMS.cc: Fix formatting
Ryan Long
ryan.long at oarcorp.com
Fri Sep 10 18:03:10 UTC 2021
---
tester/covoar/CoverageWriterRTEMS.cc | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/tester/covoar/CoverageWriterRTEMS.cc b/tester/covoar/CoverageWriterRTEMS.cc
index fc8a241..a451999 100644
--- a/tester/covoar/CoverageWriterRTEMS.cc
+++ b/tester/covoar/CoverageWriterRTEMS.cc
@@ -30,9 +30,9 @@ namespace Coverage {
void CoverageWriterRTEMS::writeFile(
const std::string& file,
- CoverageMapBase* coverage,
- uint32_t lowAddress,
- uint32_t highAddress
+ CoverageMapBase* coverage,
+ uint32_t lowAddress,
+ uint32_t highAddress
)
{
std::ofstream coverageFile;
@@ -52,9 +52,9 @@ namespace Coverage {
}
/* clear out the header and fill it in */
- memset( &header, 0, sizeof(header) );
+ memset( &header, 0, sizeof( header ) );
header.ver = 0x1;
- header.header_length = sizeof(header);
+ header.header_length = sizeof( header );
header.start = lowAddress;
header.end = highAddress;
strcpy( header.desc, "RTEMS Coverage Data" );
@@ -68,8 +68,8 @@ namespace Coverage {
throw rld::error( what, "CoverageWriterRTEMS::writeFile" );
}
- for ( a=lowAddress ; a < highAddress ; a++ ) {
- cover = ((coverage->wasExecuted( a )) ? 0x01 : 0);
+ for ( a = lowAddress; a < highAddress; a++ ) {
+ cover = ( ( coverage->wasExecuted( a ) ) ? 0x01 : 0 );
bytes_before = coverageFile.tellp();
@@ -78,9 +78,9 @@ namespace Coverage {
std::cerr << "CoverageWriterRTEMS::writeFile - 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"
<< std::endl;
}
--
1.8.3.1
More information about the devel
mailing list