aboutsummaryrefslogtreecommitdiff
path: root/output.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-04-03 13:51:09 +0200
committerPetr Machata <pmachata@redhat.com>2012-04-19 01:35:46 +0200
commit0367389718bc6e544b7ec42acb84f590c69d76ad (patch)
tree0ff964ecc915084fe12bb106743275986861abd7 /output.c
parentaf334ebfc46c4bd1c0efe60d6a33e14d1f3e62d1 (diff)
downloadltrace-0367389718bc6e544b7ec42acb84f590c69d76ad.tar.gz
Hide caller unless custom -e is passed
Diffstat (limited to 'output.c')
-rw-r--r--output.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/output.c b/output.c
index 0f59e2e..bc4b681 100644
--- a/output.c
+++ b/output.c
@@ -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);