diff options
author | Josh Stone <jistone@redhat.com> | 2009-05-14 19:08:37 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-05-14 19:08:37 -0700 |
commit | d0ad1746d87fe948327cd4924c80baf981b20509 (patch) | |
tree | 8ab3c9ab7d835672fc4dd414fa7a12fbf1308e5b | |
parent | e6f78c1fb041a7bc12d51649384397cd0874c190 (diff) | |
download | systemtap-steved-d0ad1746d87fe948327cd4924c80baf981b20509.tar.gz systemtap-steved-d0ad1746d87fe948327cd4924c80baf981b20509.tar.xz systemtap-steved-d0ad1746d87fe948327cd4924c80baf981b20509.zip |
[tracepoints] ternary is nicer for arg format
-rw-r--r-- | tapsets.cxx | 6 |
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); } |