summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 51ac8113..34242c8f 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -313,13 +313,19 @@ void stapfile::print (ostream& o)
void probe::print (ostream& o)
{
o << "probe ";
+ printsig (o);
+ o << *body;
+}
+
+
+void probe::printsig (ostream& o)
+{
for (unsigned i=0; i<locations.size(); i++)
{
o << (i>0 ? ", " : "");
locations[i]->print (o);
}
o << endl;
- o << *body;
}