diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-08-24 08:03:53 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-08-24 08:03:53 -0400 |
commit | fb84c077272764f8cb000e9b02572fb7c9cac24f (patch) | |
tree | 949366bbb51a156daeffdabfbc5a2f8eda4f8b49 /tapsets.cxx | |
parent | 06aca46a39fc5f6362dc6e6fad6e9c2f837a87ce (diff) | |
download | systemtap-steved-fb84c077272764f8cb000e9b02572fb7c9cac24f.tar.gz systemtap-steved-fb84c077272764f8cb000e9b02572fb7c9cac24f.tar.xz systemtap-steved-fb84c077272764f8cb000e9b02572fb7c9cac24f.zip |
whitespace cleanup + uprobe "?@-1" fix too
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
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<string> (line)); + retro_name += (":" + lex_cast<string> (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<string> (line)); + { + retro_name += ("@" + string (filename)); + if (line > 0) + retro_name += (":" + lex_cast<string> (line)); + } comps.push_back (new probe_point::component (fn_or_stmt, new literal_string (retro_name))); |