[1/2,applied] dwarf-reader: Improve logging messages

Message ID 875x0e4kwz.fsf@seketeli.org
State New
Headers
Series [1/2,applied] dwarf-reader: Improve logging messages |

Commit Message

Dodji Seketeli Sept. 9, 2026, 1:24 p.m. UTC
  Hello,

While looking at something else, I noticed the logging messages from the
DWARF reader when reading debug info into the ABI corpus could use some
improvement.

The patch thus improves logging output when using the tools with the
--verbose option.  Applying to the mainline.

	* src/abg-dwarf-reader.cc (reader::read_debug_info_into_corpus):
	Make logging clearer and more consistent.

Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
---
 src/abg-dwarf-reader.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Patch

diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc
index 238463a3..f506ae6d 100644
--- a/src/abg-dwarf-reader.cc
+++ b/src/abg-dwarf-reader.cc
@@ -2441,7 +2441,7 @@  public:
       tools_utils::timer t;
       if (do_log())
 	{
-	  cerr << "building die -> parent maps ...";
+	  cerr << "building die -> parent maps ...\n";
 	  t.start();
 	}
 
@@ -2450,8 +2450,8 @@  public:
       if (do_log())
 	{
 	  t.stop();
-	  cerr << " DONE@" << corpus()->get_path()
-	       << ":"
+	  cerr << "built DIE -> parent maps for " << corpus()->get_path()
+	       << " in : "
 	       << t
 	       << "\n";
 	}