This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH] Fix a bug in atvar_op::print: we did not output the module arg.
- From: "Yichun Zhang (agentzh)" <agentzh at gmail dot com>
- To: systemtap at sourceware dot org
- Cc: "Yichun Zhang (agentzh)" <agentzh at gmail dot com>
- Date: Sat, 4 Aug 2018 00:50:52 -0700
- Subject: [PATCH] Fix a bug in atvar_op::print: we did not output the module arg.
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