I am writing a kernel module and I want to be able to print something on the console output when booting with insmod module.ko.
I tried to use
printk(KERN_EMERG "test kernel emergency\n");
but nothing is displayed on my console. However, he appears in dmesg.
Additional Information:
I am using a 32-bit version of Intel x86 with linux-3.0.0
and cat /proc/sys/kernel/printkgives4 4 1 7
source
share