Skip to content

Commit

Permalink
Fix buffering of kmsg writes
Browse files Browse the repository at this point in the history
A newline delimiter is needed to have the kernel not buffer writes to
kmsg until the next write.
  • Loading branch information
jmbaur committed Jul 12, 2024
1 parent 2a8357b commit 139dce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log.zig
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub fn logFn(
stream.reset();

stream.writer().print(
"<" ++ syslog_prefix ++ ">" ++ LOG_PREFIX ++ ": " ++ format,
"<" ++ syslog_prefix ++ ">" ++ LOG_PREFIX ++ ": " ++ format ++ "\n",
args,
) catch {};

Expand Down

0 comments on commit 139dce3

Please sign in to comment.