summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2008-04-25 11:58:56 -0500
committerDavid Smith <dsmith@redhat.com>2008-04-25 11:58:56 -0500
commita53c9645aeb7a97a122e161aaa4359152802d5f7 (patch)
treec086ee6971ea6c720073bc3b4ac4db9fc7e04f17 /tapsets.cxx
parent261e29dbb7b0a60e8b1e251e653082651ec58def (diff)
downloadsystemtap-steved-a53c9645aeb7a97a122e161aaa4359152802d5f7.tar.gz
systemtap-steved-a53c9645aeb7a97a122e161aaa4359152802d5f7.tar.xz
systemtap-steved-a53c9645aeb7a97a122e161aaa4359152802d5f7.zip
Handles markers with no format string.
2008-04-25 David Smith <dsmith@redhat.com> PR 6455. * tapsets.cxx (mark_builder::build): Handles markers with no format string.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index c0a090e2..23e85a0e 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -6488,6 +6488,11 @@ mark_builder::build(systemtap_session & sess,
string::size_type notwhite = format.find_first_not_of(" \t");
format.erase(0, notwhite);
+ // If the format is empty, make sure we add back a space
+ // character, which is what MARK_NOARGS expands to.
+ if (format.length() == 0)
+ format = " ";
+
if (sess.verbose>3)
clog << "'" << name << "' '" << module << "' '" << format
<< "'" << endl;