printk: Fix log_buf_copy termination.
authorArve Hjønnevåg <arve@android.com>
Tue, 15 Apr 2008 04:35:25 +0000 (21:35 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:35:53 +0000 (15:35 -0800)
commit8a3025c963926f1cc36b15f6b95b9da0c1ab1cdf
tree844446a8e6956428a862f557cb2d31be233ad127
parentafa82e25d4d6ab6500828cd7cc9d395a9c1e5d69
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