summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-05-14 19:08:37 -0700
committerJosh Stone <jistone@redhat.com>2009-05-14 19:08:37 -0700
commitd0ad1746d87fe948327cd4924c80baf981b20509 (patch)
tree8ab3c9ab7d835672fc4dd414fa7a12fbf1308e5b
parente6f78c1fb041a7bc12d51649384397cd0874c190 (diff)
downloadsystemtap-steved-d0ad1746d87fe948327cd4924c80baf981b20509.tar.gz
systemtap-steved-d0ad1746d87fe948327cd4924c80baf981b20509.tar.xz
systemtap-steved-d0ad1746d87fe948327cd4924c80baf981b20509.zip
[tracepoints] ternary is nicer for arg format
-rw-r--r--tapsets.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 137cd801..d7e9ab4f 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -7404,11 +7404,7 @@ tracepoint_var_expanding_visitor::visit_target_symbol_context (target_symbol* e)
expression *texp = require (tsym); // NB: throws nothing ...
assert (!tsym->saved_conversion_error); // ... but this is how we know it happened.
- if (args[i].isptr)
- pf->raw_components += "=%p";
- else
- pf->raw_components += "=%#x";
-
+ pf->raw_components += args[i].isptr ? "=%p" : "=%#x";
pf->args.push_back(texp);
}