[RFC] printk: add warning while drop partial text in msg

2017-07-28 Thread pierre Kuo
If the buffer pass to msg_print_text is not big enough to put both all prefixes and log_text(msg), kernel will quietly break. That means the user may not have the chance to know whether the log_text(msg) is fully printed into buffer or not. In this patch, once above case happened, we try to

[RFC] printk: add warning while drop partial text in msg

2017-07-28 Thread pierre Kuo
If the buffer pass to msg_print_text is not big enough to put both all prefixes and log_text(msg), kernel will quietly break. That means the user may not have the chance to know whether the log_text(msg) is fully printed into buffer or not. In this patch, once above case happened, we try to