summaryrefslogtreecommitdiff
path: root/net/asterisk14/files/patch-suppress_log_dups.diff
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk14/files/patch-suppress_log_dups.diff')
-rw-r--r--net/asterisk14/files/patch-suppress_log_dups.diff4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/asterisk14/files/patch-suppress_log_dups.diff b/net/asterisk14/files/patch-suppress_log_dups.diff
index 115b69f21ca1..603c6d4540c5 100644
--- a/net/asterisk14/files/patch-suppress_log_dups.diff
+++ b/net/asterisk14/files/patch-suppress_log_dups.diff
@@ -175,9 +175,9 @@ Index: main/logger.c
+ snprintf(buf, sizeof(buf),
"[%s] %s[%ld] %s: ",
date, levels[level], (long)GETTID(), file);
-- res = fprintf(chan->fileptr, "%s", buf->str);
+- res = fprintf(chan->fileptr, "%s", term_strip(buf->str, buf->str, strlen(buf->str) + 1));
- if (res <= 0 && !ast_strlen_zero(buf->str)) { /* Error, no characters printed */
-+ res = fprintf(chan->fileptr, "%s", buf);
++ res = fprintf(chan->fileptr, "%s", term_strip(buf, buf, strlen(buf) + 1));
+ if (res <= 0 && !ast_strlen_zero(buf)) { /* Error, no characters printed */
fprintf(stderr,"**** Asterisk Logging Error: ***********\n");
if (errno == ENOMEM || errno == ENOSPC) {