summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneal <neal>2008-02-13 14:34:53 +0000
committerneal <neal>2008-02-13 14:34:53 +0000
commite06465bbacc56dafa285139d618cb2845d8b9d80 (patch)
tree110ce97a65f3ba36cc6b6977a73bfe4548441d0c
parent2c6d94ff01c2674c9708fc866b3a2e4103910d77 (diff)
2008-02-13 Neal H. Walfield <neal@gnu.org>
* assert.h (assertx): Improve printing of backtrace.
-rw-r--r--libc-parts/ChangeLog4
-rw-r--r--libc-parts/assert.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/libc-parts/ChangeLog b/libc-parts/ChangeLog
index 3793ebe..dfd530c 100644
--- a/libc-parts/ChangeLog
+++ b/libc-parts/ChangeLog
@@ -1,5 +1,9 @@
2008-02-13 Neal H. Walfield <neal@gnu.org>
+ * assert.h (assertx): Improve printing of backtrace.
+
+2008-02-13 Neal H. Walfield <neal@gnu.org>
+
* ia32-cmain.c (cmain): Update user of _pthread_init_routine to
reflect API change.
diff --git a/libc-parts/assert.h b/libc-parts/assert.h
index 79456ab..6e3dc55 100644
--- a/libc-parts/assert.h
+++ b/libc-parts/assert.h
@@ -64,9 +64,9 @@
void *a[10]; \
int count = backtrace (a, sizeof (a) / sizeof (a[0])); \
int i; \
+ S_PRINTF ("Backtrace: "); \
for (i = 0; i < count; i ++) \
- S_PRINTF ("Backtrace: %p%s", \
- a[i], i == count - 1 ? "" : " -> "); \
+ S_PRINTF ("%p ", a[i]); \
S_PRINTF ("\n"); \
\
for (;;); \