From 779d7f62377b0ddc31134ef6ba92c185a3ccc2ec Mon Sep 17 00:00:00 2001 From: Shawn Feng Date: Tue, 19 Nov 2024 03:23:42 +0800 Subject: [PATCH] Use "\n" instead of "\r\n" for line breaks --- src/ulog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ulog.c b/src/ulog.c index e065856..05616cd 100644 --- a/src/ulog.c +++ b/src/ulog.c @@ -324,7 +324,7 @@ void logger_log_with_header(struct ulog_s *logger, enum ulog_level_e level, &log_buffer, "%s", logger_check_format(logger, ULOG_F_COLOR) ? ULOG_STR_RESET : ""); - if (newline) logger_snprintf(&log_buffer, "\r\n"); + if (newline) logger_snprintf(&log_buffer, "\n"); if (flush) { logger_flush(logger, &log_buffer);