summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-10 20:42:50 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-10 20:42:50 +0200
commit3b02fcfb2d3df5f849b2544f3064d2ca346d319e (patch)
tree9877839d9bd4b7f7cb0e707de4e19e61e69851c6
parent7cc26ce0a192814174b93dbb387a4ff69e341138 (diff)
x86/strace: tweak stack tracing output
-rw-r--r--arch/x86/machine/strace.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/machine/strace.c b/arch/x86/machine/strace.c
index 7ff47ef1..6c28cf15 100644
--- a/arch/x86/machine/strace.c
+++ b/arch/x86/machine/strace.c
@@ -75,9 +75,9 @@ strace_show_one(unsigned int index, unsigned long ip)
name = strace_lookup(ip, &offset, &size);
if (name == NULL) {
- printf("strace: #%u [" STRACE_ADDR_FORMAT "]\n", index, ip);
+ printf("#%u [" STRACE_ADDR_FORMAT "]\n", index, ip);
} else {
- printf("strace: #%u [" STRACE_ADDR_FORMAT "] %s+%#lx/%#lx\n",
+ printf("#%u [" STRACE_ADDR_FORMAT "] %s+%#lx/%#lx\n",
index, ip, name, (unsigned long)offset, (unsigned long)size);
}
}
@@ -90,7 +90,6 @@ strace_show(unsigned long ip, unsigned long bp)
unsigned int i;
int error;
- printf("strace: stack trace:\n");
strace_show_one(0, ip);
i = 1;
@@ -119,8 +118,6 @@ strace_show(unsigned long ip, unsigned long bp)
i++;
frame = frame[0];
}
-
- printf("strace: end of trace\n");
}
static void * __init