From d0ad1746d87fe948327cd4924c80baf981b20509 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 14 May 2009 19:08:37 -0700 Subject: [tracepoints] ternary is nicer for arg format --- tapsets.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tapsets.cxx') 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); } -- cgit