summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
authorfche <fche>2005-03-15 22:59:24 +0000
committerfche <fche>2005-03-15 22:59:24 +0000
commit40a1cb627a1eb360cdb7de21c75a76c7fe137a76 (patch)
tree3d817b332e8eff16e15d3c0ffaabc905fe959d95 /staptree.cxx
parent9c0c0e4652824a0bf8f4da2175278b129fac6809 (diff)
downloadsystemtap-steved-40a1cb627a1eb360cdb7de21c75a76c7fe137a76.tar.gz
systemtap-steved-40a1cb627a1eb360cdb7de21c75a76c7fe137a76.tar.xz
systemtap-steved-40a1cb627a1eb360cdb7de21c75a76c7fe137a76.zip
2005-03-15 Frank Ch. Eigler <fche@redhat.com>
* semtest.cxx: Print probe signatures properly. * staptree.cxx (probe::printsig): New function.
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;
}