[PATCH rtems-tools v1 07/10] CoverageWriterSkyeye.cc: Fix formatting

Ryan Long ryan.long at oarcorp.com
Wed Sep 8 16:44:37 UTC 2021


---
 tester/covoar/CoverageWriterSkyeye.cc | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/tester/covoar/CoverageWriterSkyeye.cc b/tester/covoar/CoverageWriterSkyeye.cc
index 5225406..08aa609 100644
--- a/tester/covoar/CoverageWriterSkyeye.cc
+++ b/tester/covoar/CoverageWriterSkyeye.cc
@@ -37,11 +37,11 @@ namespace Coverage {
     uint32_t            highAddress
   )
   {
-    uint32_t      a;
-    uint8_t       cover;
-    std::ofstream coverageFile;
-    prof_header_t header;
-    long int      bytes_before;
+    uint32_t       a;
+    uint8_t        cover;
+    std::ofstream  coverageFile;
+    prof_header_t  header;
+    long int       bytes_before;
 
     /*
      *  read the file and update the coverage map passed in
@@ -54,9 +54,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.prof_start    = lowAddress;
     header.prof_end      = highAddress;
     strcpy( header.desc, "Skyeye Coverage Data" );
@@ -81,9 +81,9 @@ namespace Coverage {
         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, "CoverageWriterSkyeye::writeFile" );
       }
-- 
1.8.3.1



More information about the devel mailing list