[PATCH] Unify output from backtrace_symbols_fd with backtrace_symbols (bug 31730)
Andreas Schwab
schwab@suse.de
Mon May 13 11:12:40 GMT 2024
---
debug/backtracesymsfd.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/debug/backtracesymsfd.c b/debug/backtracesymsfd.c
index ce784a9b2b..f68a4830e7 100644
--- a/debug/backtracesymsfd.c
+++ b/debug/backtracesymsfd.c
@@ -95,8 +95,14 @@ __backtrace_symbols_fd (void *const *array, int size, int fd)
- (char *) iov[last].iov_base);
++last;
- iov[last].iov_base = (void *) ")";
- iov[last].iov_len = 1;
+ iov[last].iov_base = (void *) ") ";
+ iov[last].iov_len = 2;
+ ++last;
+ }
+ else
+ {
+ iov[last].iov_base = (void *) "() ";
+ iov[last].iov_len = 3;
++last;
}
}
--
2.45.0
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list