printk: Fix log_buf_copy termination.
authorArve Hjønnevåg <arve@android.com>
Tue, 15 Apr 2008 04:35:25 +0000 (21:35 -0700)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:14 +0000 (09:09 -0700)
commit0da19af0b8c8b8d8bd19a262479d49d8061c0c13
treeaf1ba23b042e0ebf4f075c552e217362a45d1df3
parentfc4fb2825c927af3a67ff5120816e2a37748d6af
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