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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to set
CONFIG_LOG_BUF_SHIFTduring compile time. The size of the buffer can not be modified in run time.The size of the buffer is
2^CONFIG_LOG_BUF_SHIFTbytes