Simple driver module does not print logs


I am trying to insert a simple hello_workd kernel module in emteria Android OS.
The lsmod does show the module inserted but the printk logs mentioned in module_init function is not visible in dmesg.
Here is the code I am referring to;


include <linux/module.h>

include <linux/version.h>

include <linux/kernel.h>

static int __init m_init(void) /* Constructor */
printk(KERN_ERR "Hello World!!");
return 0;

static void __exit m_exit(void) /* Destructor */
printk(KERN_ERR "Bye, Cruel world");


Can anyone help me to resolve this?


This discussion has been closed.