[PATCH 1/2] rtemstoolkit/rtl: Trace output changes.

Chris Johns chrisj at rtems.org
Thu Apr 12 04:35:49 UTC 2018


Update #2769
---
 rtemstoolkit/rld-outputter.cpp |  2 +-
 rtemstoolkit/rld-rap.cpp       | 12 +++++++++---
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/rtemstoolkit/rld-outputter.cpp b/rtemstoolkit/rld-outputter.cpp
index 600aedc..f763f48 100644
--- a/rtemstoolkit/rld-outputter.cpp
+++ b/rtemstoolkit/rld-outputter.cpp
@@ -346,7 +346,7 @@ namespace rld
                      const files::cache&       cache)
     {
       if (rld::verbose () >= RLD_VERBOSE_INFO)
-        std::cout << "outputter:application: " << name << std::endl;
+        std::cout << "outputter:elf: " << name << std::endl;
 
       files::object_list dep_copy (dependents);
       files::object_list objects;
diff --git a/rtemstoolkit/rld-rap.cpp b/rtemstoolkit/rld-rap.cpp
index 9b87279..5c5139e 100644
--- a/rtemstoolkit/rld-rap.cpp
+++ b/rtemstoolkit/rld-rap.cpp
@@ -1333,8 +1333,13 @@ namespace rld
           section&     sec = obj.secs[s];
           relocations& relocs = sec.relocs;
           uint32_t     rc = 0;
+          bool         trace = false;
 
-          if (rld::verbose () >= RLD_VERBOSE_TRACE)
+          trace =
+              (sec.relocs.size () > 0 && rld::verbose () >= RLD_VERBOSE_TRACE) ||
+              (rld::verbose () >= RLD_VERBOSE_FULL_DEBUG);
+
+          if (trace)
             std::cout << " relocs=" << sec.relocs.size ()
                       << " sec.offset=" << sec.offset
                       << " sec.size=" << sec.size ()
@@ -1504,8 +1509,9 @@ namespace rld
 
           if (rld::verbose () >= RLD_VERBOSE_TRACE)
           {
-            std::cout << "rap:section: " << sec.name << " "
-                         "offset= " << sec.offset << std::endl;
+            std::cout << "rap:section: " << sec.name
+                      << " offset=" << sec.offset
+                      << " size=" << sec.size () << std::endl;
           }
 
           for (size_t si = 0; si < sec.osindexes.size (); ++si)
-- 
2.15.1




More information about the devel mailing list