public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] example-module: use pr_info instead of printk
@ 2026-04-10 16:50 srinuvasan.a via isar-users
  2026-04-10 17:41 ` 'Jan Kiszka' via isar-users
  0 siblings, 1 reply; 3+ messages in thread
From: srinuvasan.a via isar-users @ 2026-04-10 16:50 UTC (permalink / raw)
  To: isar-users; +Cc: Srinuvasan A

From: Srinuvasan A <srinuvasan.a@siemens.com>

The initialization message was not visible in dmesg
when the module was loaded.

Switch to pr_info() to ensure the message is properly
logged and visible during module initialization.

Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com>
---
 .../recipes-kernel/example-module/files/src/example-module.c    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-isar/recipes-kernel/example-module/files/src/example-module.c b/meta-isar/recipes-kernel/example-module/files/src/example-module.c
index 4e74ee74..5a408726 100644
--- a/meta-isar/recipes-kernel/example-module/files/src/example-module.c
+++ b/meta-isar/recipes-kernel/example-module/files/src/example-module.c
@@ -10,7 +10,7 @@
 
 static int __init example_module_init(void)
 {
-	printk("Just an example\n");
+	pr_info("Just an example\n");
 	return 0;
 }
 
-- 
2.34.1

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260410165048.438922-1-srinuvasan.a%40siemens.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-17  5:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-10 16:50 [PATCH] example-module: use pr_info instead of printk srinuvasan.a via isar-users
2026-04-10 17:41 ` 'Jan Kiszka' via isar-users
2026-04-17  5:03   ` 'Arjunan, Srinu' via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox