KERN_DEBUG printk is not sent to the QEMU console at boot time?

I am trying to debug and optimize kernel boot time. I use QEMU to emulate the kernel. I put a few of my printk with KERN_DEBUG, but they do not appear on any of the terminals. I had to change them to KERN_INFO, and then I see the same thing.

My debug log level is 7. I changed it when I configured the kernel.

Can someone kindly tell me if fingerprints will receive a buffer for any other terminal?

+4
source share
1 answer

I really came across this problem before. I ended up solving this problem β€œbadly”.

Try adding loglevel = 8 to your kernel boot options.

Also according to http://elinux.org/Debugging_by_printing
Only messages with a value lower (not lower equal) than the console_loglevel will be printed.

+6
source

Source: https://habr.com/ru/post/1495984/


All Articles