diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-03 13:51:09 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-19 01:35:46 +0200 |
commit | 0367389718bc6e544b7ec42acb84f590c69d76ad (patch) | |
tree | 0ff964ecc915084fe12bb106743275986861abd7 /output.c | |
parent | af334ebfc46c4bd1c0efe60d6a33e14d1f3e62d1 (diff) | |
download | ltrace-0367389718bc6e544b7ec42acb84f590c69d76ad.tar.gz |
Hide caller unless custom -e is passed
Diffstat (limited to 'output.c')
-rw-r--r-- | output.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -174,14 +174,15 @@ output_left(enum tof type, struct Process *proc, current_proc = proc; current_depth = proc->callstack_depth; begin_of_line(type, proc); + if (!options.hide_caller) + fprintf(options.output, "%s->", libsym->lib->soname); #ifdef USE_DEMANGLE current_column += - fprintf(options.output, "%s->%s(", libsym->lib->soname, + fprintf(options.output, "%s(", (options.demangle ? my_demangle(function_name) : function_name)); #else - current_column += fprintf(options.output, "%s->%s(", - libsym->lib->name, function_name); + current_column += fprintf("%s(", function_name); #endif func = name2func(function_name); |