From 82def075951bb19e7520c48579fca41f6988d0e5 Mon Sep 17 00:00:00 2001 From: FranCDoc Date: Wed, 10 Jun 2026 18:06:24 -0300 Subject: [PATCH] nvidia: suppress newline-only RM log output out_string() forwards strings from RM directly to printk(). If RM emits a separator consisting only of a newline, this can create a blank kernel log record during boot. Ignore NULL, empty, and newline-only strings before calling printk() so separator-only output does not appear as a false boot error in journalctl -p3. Fixes #1098. --- kernel-open/nvidia/os-interface.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel-open/nvidia/os-interface.c b/kernel-open/nvidia/os-interface.c index ebbd236ad..a019aadbf 100644 --- a/kernel-open/nvidia/os-interface.c +++ b/kernel-open/nvidia/os-interface.c @@ -843,6 +843,12 @@ NvU32 cur_debuglevel = 0xffffffff; */ inline void NV_API_CALL out_string(const char *str) { + if ((str == NULL) || (str[0] == '\0') || + ((str[0] == '\n') && (str[1] == '\0'))) + { + return; + } + printk("%s", str); }