Hi,
In the early stage of kernel initialization, I am using pr_notice (also printk( KERN_ALERT, etc.). When there is a udelay, for example udelay(5000), the printk messages are buffered. Can not find any way of flushing. I also tried console_unlock. It seems not working at all.
Is there any function all to flush printk immediately after the function call?
Thank you,
David Zhot
Please try to perform fflush(NULL);
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------