summaryrefslogtreecommitdiff
path: root/lib/stream.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-02-14 15:35:07 +0100
committerDavid Lamparter <equinox@diac24.net>2021-02-14 15:36:51 +0100
commit1d5453d6070f5266f0bdf709690282a0dc5dc83d (patch)
tree7eb4346adce641e92cc79a0be696908e924466e1 /lib/stream.c
parent44b0793e88503b4b70a569c0579f7a79b587f627 (diff)
*: remove tabs & newlines from log messages
Neither tabs nor newlines are acceptable in syslog messages. They also break line-based parsing of file logs. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/stream.c')
-rw-r--r--lib/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stream.c b/lib/stream.c
index e4e37b7315..ef73c2fdc9 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -57,7 +57,7 @@ DEFINE_MTYPE_STATIC(LIB, STREAM_FIFO, "Stream FIFO")
#define STREAM_WARN_OFFSETS(S) \
do { \
flog_warn(EC_LIB_STREAM, \
- "&(struct stream): %p, size: %lu, getp: %lu, endp: %lu\n", \
+ "&(struct stream): %p, size: %lu, getp: %lu, endp: %lu", \
(void *)(S), (unsigned long)(S)->size, \
(unsigned long)(S)->getp, (unsigned long)(S)->endp); \
zlog_backtrace(LOG_WARNING); \
@@ -93,7 +93,7 @@ DEFINE_MTYPE_STATIC(LIB, STREAM_FIFO, "Stream FIFO")
if (((S)->endp + (Z)) > (S)->size) { \
flog_warn( \
EC_LIB_STREAM, \
- "CHECK_SIZE: truncating requested size %lu\n", \
+ "CHECK_SIZE: truncating requested size %lu", \
(unsigned long)(Z)); \
STREAM_WARN_OFFSETS(S); \
(Z) = (S)->size - (S)->endp; \