Issue
I'm writing some code with printk [i'm printing while in kernel mode] , but because dmesg is too small I'm losing the first few printk's.
How can I increase the size of dmesg ?
thanks in advance for the help!
Solution
You need to set CONFIG_LOG_BUF_SHIFT
during compile time. The size of the buffer can not be modified in run time.
The size of the buffer is 2^CONFIG_LOG_BUF_SHIFT
bytes
Answered By - Kimvais Answer Checked By - Katrina (WPSolving Volunteer)