summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemyslaw@pawelczyk.it>2009-10-13 14:44:29 +0200
committerJosh Stone <jistone@redhat.com>2009-10-13 12:25:36 -0700
commitb15c465c2238a4414925c8f6bce15c89bdd93e44 (patch)
treeac9b887721d27e0ed7971f4dcc6f9eed385c0a19 /parse.cxx
parentb45283807e0fd961447cd5aa91d1fbff98e1940a (diff)
downloadsystemtap-steved-b15c465c2238a4414925c8f6bce15c89bdd93e44.tar.gz
systemtap-steved-b15c465c2238a4414925c8f6bce15c89bdd93e44.tar.xz
systemtap-steved-b15c465c2238a4414925c8f6bce15c89bdd93e44.zip
PR10257: Add support for sprint[ln](@hist_*).
* parse.cxx (parser::parse_symbol): Add sprint[ln] to @hist_* hack. * runtime/stat-common.c: Replace reprint with new reprint_buf, add more generic _stp_stat_print_histogram_buf and call it from the older one. Also correct some formatting issues. * translate.cxx (c_unparser::visit_print_format): Add sprint case.
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.cxx b/parse.cxx
index 5b3506f8..1496e9b8 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -2422,7 +2422,8 @@ parser::parse_symbol ()
fmt->print_char = pf_char;
expect_op("(");
- if ((name == "print" || name == "println") &&
+ if ((name == "print" || name == "println" ||
+ name == "sprint" || name == "sprintln") &&
(peek_kw("@hist_linear") || peek_kw("@hist_log")))
{
// We have a special case where we recognize