printk: Fix log_buf_copy termination.
authorArve Hjønnevåg <arve@android.com>
Tue, 15 Apr 2008 04:35:25 +0000 (21:35 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:38:11 +0000 (21:38 -0800)
commitd006c0fd9ae4cdc8aaf9e2802aefa78672e381b4
tree0fd53830311475cef67e88063982bf9e20ce0f8c
parentc69e7f2ea7d1d77dc5b49c07b9a6fdabffa26d06
printk: Fix log_buf_copy termination.

If idx was non-zero and the log had wrapped, len did not get truncated
to stop at the last byte written to the log.
kernel/printk.c