Skip to content

Commit 9a7d74d

Browse files
committed
doc/logging.md: correct kmsg claim — kmsg receives plain text, not ANSI
Only DIE writes to /dev/kmsg (in debug mode), and the kmsg output uses the raw message without ANSI formatting. ANSI is added only to the /dev/console output path. Signed-off-by: Thierry Laurion <insurgo@riseup.net>
1 parent 53e0a8c commit 9a7d74d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

doc/logging.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ color is never the sole signal; text prefixes carry meaning independently):
394394

395395
\* INPUT prints a newline after user input, not before.
396396

397-
debug.log and /dev/kmsg preserve ANSI codes for terminal rendering with `less -R`.
397+
debug.log preserves ANSI codes for terminal rendering with `less -R`.
398+
/dev/kmsg always receives plain text (ANSI formatting is added only to the
399+
/dev/console output path).
398400

399401
All console output goes to **`/dev/console`** — the kernel console device, which follows
400402
the `console=` kernel parameter and reaches whatever output the system was configured for

0 commit comments

Comments
 (0)