Skip to content

Commit

Permalink
Use "\n" instead of "\r\n" for line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnfeng0 committed Nov 18, 2024
1 parent 0d9888e commit 779d7f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ulog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 779d7f6

Please sign in to comment.