Skip to contentSkip to conversation

mm/bpf_memcontrol: Add missing newline in pr_warn message

PATCH In review Hui Zhu 3 participants 3 messages Jan 29 – Jan 30

Subsystems (3)
lore
Share & tools
lore

Hui Zhu

author
#0 lore raw

PATCH 1/1 mm/bpf_memcontrol: Add missing newline in pr_warn message

From: Hui Zhu <[email protected]>

Add missing newline character at the end of pr_warn error message in bpf_memcontrol_init() function. Kernel log messages should end with a newline character for proper formatting in kernel logs.

This issue was pointed out in
https://github.com/kernel-patches/bpf/pull/10864#discussion_r2735018210

---
 mm/bpf_memcontrol.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
mm/bpf_memcontrol.c +2 -1
index 716df49d7647..20999a29820b 100644
@@ -186,7 +186,8 @@ static int __init bpf_memcontrol_init(void)
 	err = register_btf_kfunc_id_set(BPF_PROG_TYPE_UNSPEC,
 					&bpf_memcontrol_kfunc_set);
 	if (err)
-		pr_warn("error while registering bpf memcontrol kfuncs: %d", err);
+		pr_warn("error while registering bpf memcontrol kfuncs: %d\n",
+			err);
 
 	return err;
 }
Signature · 1 line
2.43.0
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Hui Zhu
Quoted 10 lines · Hui Zhu

From: Hui Zhu <[email protected]>

Add missing newline character at the end of pr_warn error message in bpf_memcontrol_init() function. Kernel log messages should end with a newline character for proper formatting in kernel logs.

This issue was pointed out in
https://github.com/kernel-patches/bpf/pull/10864#discussion_r2735018210