From fb84c077272764f8cb000e9b02572fb7c9cac24f Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sun, 24 Aug 2008 08:03:53 -0400 Subject: whitespace cleanup + uprobe "?@-1" fix too --- tapsets.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index f4c9a938..809792a4 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -4645,9 +4645,9 @@ dwarf_derived_probe::dwarf_derived_probe(const string& funcname, string retro_name = funcname; if (filename != "") { - retro_name += ("@" + string (filename)); + retro_name += ("@" + string (filename)); if (line > 0) - retro_name += (":" + lex_cast (line)); + retro_name += (":" + lex_cast (line)); } comps.push_back (new probe_point::component @@ -6614,9 +6614,11 @@ uprobe_derived_probe::uprobe_derived_probe (const string& function, { string retro_name = function; if (filename != "") - retro_name += ("@" + string (filename)); - if (line != -1) - retro_name += (":" + lex_cast (line)); + { + retro_name += ("@" + string (filename)); + if (line > 0) + retro_name += (":" + lex_cast (line)); + } comps.push_back (new probe_point::component (fn_or_stmt, new literal_string (retro_name))); -- cgit