According to manual page it told that if priority of message's log level is higher than default set log level then it will be printed on terminal. But when I had used sentence like
printk(KERN_ALERT " MESSAGE ")
I am facing problem to print message on terminal. Because the default priority is set to 4 and
KERN_ALERT has priority
1, which is higher.
So, how can I print message on terminal?
It should print messages to the console, not to the terminal. Sometimes the console and the terminal seems the same, but it is not. Edit /proc/sys/kernel/printk to set up the lowest priority to print in console
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!Donate Us With