Why my kernel log is not showing the latest output?

Sometimes printk may defer output (that is, message is stored in the internal buffer, but not in kernel log). To avoid such behavior, always add newline (\n) at the end of the string printed:

printk(KERN_ALERT "%s\n" ,mystring);

Leave a Comment