From a53c9645aeb7a97a122e161aaa4359152802d5f7 Mon Sep 17 00:00:00 2001 From: David Smith Date: Fri, 25 Apr 2008 11:58:56 -0500 Subject: [PATCH] Handles markers with no format string. 2008-04-25 David Smith PR 6455. * tapsets.cxx (mark_builder::build): Handles markers with no format string. --- ChangeLog | 6 ++++++ tapsets.cxx | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7a8fa788c..55452045b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-25 David Smith + + PR 6455. + * tapsets.cxx (mark_builder::build): Handles markers with no + format string. + 2008-04-24 Frank Ch. Eigler PR 6454. diff --git a/tapsets.cxx b/tapsets.cxx index c0a090e26..23e85a0e5 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; -- 2.43.5