[exim-cvs] tidy segv stacktrace logging

Inizio della pagina
Delete this message
Reply to this message
Autore: Exim Git Commits Mailing List
Data:  
To: exim-cvs
Oggetto: [exim-cvs] tidy segv stacktrace logging
Gitweb: https://git.exim.org/exim.git/commitdiff/dae16fc62c042f1c300db82ec1fc0d95cb8d66d3
Commit:     dae16fc62c042f1c300db82ec1fc0d95cb8d66d3
Parent:     9ba47886c71d40edc99b026a99edee269d9c9c6f
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Nov 12 20:17:55 2022 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sat Nov 12 20:18:16 2022 +0000


    tidy segv stacktrace logging
---
 src/src/exim.c | 10 +++++-----
 1 file 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