On 2026-03-21, [email protected] wrote: > From c348240788c0c32537226f6b34a942fc0fdaa438 Mon Sep 17 00:00:00 2001 > From: Test Developer <[email protected]> > Date: Sat, 21 Mar 2026 12:27:21 +0000 > Subject: [PATCH] lib/test_module: use pr_info instead of pr_warn for > non-warning messages > > The test module uses pr_warn() for its init and exit messages, but these > are informational in nature rather than actual warnings. Using pr_warn() > for non-warning messages clutters the kernel log with false positives > when scanning for real warnings. > > Replace pr_warn() with pr_info() to more accurately reflect the severity > level of these messages. > > Signed-off-by: Test Developer <[email protected]> > Signed-off-by: Josh Law <[email protected]> > --- > lib/test_module.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/test_module.c b/lib/test_module.c > index 3d1b29b74807..0ddca0863813 100644 > --- a/lib/test_module.c > +++ b/lib/test_module.c > @@ -16,7 +16,7 @@ > > static int __init test_module_init(void) > { > - pr_warn("Hello, world\n"); > + pr_info("Hello, world\n"); > > return 0; > } > @@ -25,7 +25,7 @@ module_init(test_module_init); > > static void __exit test_module_exit(void) > { > - pr_warn("Goodbye\n"); > + pr_info("Goodbye\n"); > } > > module_exit(test_module_exit); > -- > 2.34.1 > >
(IGNORE: TEST MESSAGE!) V/R Josh Law

