diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2022-11-12 20:17:55 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2022-11-12 20:18:16 +0000 |
commit | dae16fc62c042f1c300db82ec1fc0d95cb8d66d3 (patch) | |
tree | 2ecaf7d39de737a752c42dcc2455f03875af3ca3 | |
parent | 9ba47886c71d40edc99b026a99edee269d9c9c6f (diff) |
tidy segv stacktrace logging
-rw-r--r-- | src/src/exim.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/src/exim.c b/src/src/exim.c index 625494ce4..3cd1d5f6d 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -248,17 +248,17 @@ void * buf[STACKDUMP_MAX]; char ** ss; int nptrs = backtrace(buf, STACKDUMP_MAX); -log_write(0, LOG_MAIN|LOG_PANIC, "backtrace\n"); -log_write(0, LOG_MAIN|LOG_PANIC, "---\n"); +log_write(0, LOG_MAIN|LOG_PANIC, "backtrace"); +log_write(0, LOG_MAIN|LOG_PANIC, "---"); if ((ss = backtrace_symbols(buf, nptrs))) { for (int i = 0; i < nptrs; i++) - log_write(0, LOG_MAIN|LOG_PANIC, "\t%s\n", ss[i]); + log_write(0, LOG_MAIN|LOG_PANIC, "\t%s", ss[i]); free(ss); } else - log_write(0, LOG_MAIN|LOG_PANIC, "backtrace_symbols: %s\n", strerror(errno)); -log_write(0, LOG_MAIN|LOG_PANIC, "---\n"); + log_write(0, LOG_MAIN|LOG_PANIC, "backtrace_symbols: %s", strerror(errno)); +log_write(0, LOG_MAIN|LOG_PANIC, "---"); #endif } #undef STACKDUMP_MAX |