summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-03-25 02:50:57 +0100
committerLennart Poettering <lennart@poettering.net>2009-03-25 02:50:57 +0100
commit8460fac28583f96c039f94d42f1035c266f9a45f (patch)
tree1334cdb6ea74d2b4d43c6e26fb0397aa92c4d7ad /src/pulsecore/log.c
parente41ec51f1bdefe44c7104ce27130999600b7911e (diff)
don't show full so path in backtrace
Diffstat (limited to 'src/pulsecore/log.c')
-rw-r--r--src/pulsecore/log.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/pulsecore/log.c b/src/pulsecore/log.c
index d4d3b76e..e1b67948 100644
--- a/src/pulsecore/log.c
+++ b/src/pulsecore/log.c
@@ -156,7 +156,7 @@ static char* get_backtrace(unsigned show_nframes) {
for (j = 0; j < n; j++) {
if (j > 0)
a += 2;
- a += strlen(symbols[j]);
+ a += strlen(pa_path_get_filename(symbols[j]));
}
r = pa_xnew(char, a);
@@ -165,13 +165,17 @@ static char* get_backtrace(unsigned show_nframes) {
e = r + 2;
for (j = 0; j < n; j++) {
+ const char *sym;
+
if (j > 0) {
strcpy(e, "<<");
e += 2;
}
- strcpy(e, symbols[j]);
- e += strlen(symbols[j]);
+ sym = pa_path_get_filename(symbols[j]);
+
+ strcpy(e, sym);
+ e += strlen(sym);
}
strcpy(e, ")");