[PATCH 5/5] printk: Return really stored message length

2014-04-10 Thread Petr Mladek
I wonder if anyone uses printk return value but it is there and should be counted correctly. This patch modifies log_store() to return the number of really stored bytes from the 'text' part. Also it handles the return value in vprintk_emit(). Note that log_store() is used also in cont_flush()

[PATCH 5/5] printk: Return really stored message length

2014-04-10 Thread Petr Mladek
I wonder if anyone uses printk return value but it is there and should be counted correctly. This patch modifies log_store() to return the number of really stored bytes from the 'text' part. Also it handles the return value in vprintk_emit(). Note that log_store() is used also in cont_flush()