[PATCH] Fix a bug in atvar_op::print: we did not output the module arg.

Yichun Zhang (agentzh) agentzh@gmail.com
Mon Aug 6 05:50:00 GMT 2018


This was an issue left by commit bd1fcba. My bad.
---
 staptree.cxx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/staptree.cxx b/staptree.cxx
index 8c791675d..d1193e336 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -520,7 +520,10 @@ void atvar_op::print (ostream& o) const
 {
   if (addressof)
     o << "&";
-  o << name << "(\"" << target_name << "\")";
+  o << name << "(\"" << target_name << "\"";
+  if (module.length() > 0)
+    o << ", " << lex_cast_qstring (module);
+  o << ')';
   for (unsigned i = 0; i < components.size(); ++i)
     o << components[i];
 }
-- 
2.11.0.295.gd7dffce



More information about the Systemtap mailing list