[PATCH] os: prettify backtrace output
Peter Hutterer
peter.hutterer at who-t.net
Tue Jan 10 22:13:29 PST 2012
Changes to output:
* "Backtrace:" now appears on a separate line _with_ a timestamp
* A blank line is inserted after the last backtrace line
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
os/backtrace.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/os/backtrace.c b/os/backtrace.c
index 298bf18..c6527b1 100644
--- a/os/backtrace.c
+++ b/os/backtrace.c
@@ -188,7 +188,8 @@ static int xorg_backtrace_pstack(void) {
void xorg_backtrace(void) {
- ErrorF("\nBacktrace:\n");
+ ErrorF("\n");
+ ErrorF("Backtrace:\n");
# ifdef HAVE_PSTACK
/* First try fork/exec of pstack - otherwise fall back to walkcontext
@@ -207,6 +208,7 @@ void xorg_backtrace(void) {
# endif
ErrorF("Failed to get backtrace info: %s\n", strerror(errno));
}
+ ErrorF("\n");
}
# else
--
1.7.7.5
More information about the xorg-devel
mailing list