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>
Thu, 30 Sep 2010 00:49:21 +0000 (17:49 -0700)
commit703a8808cce6c97ca9bcb824bef77a5a306bbe92
tree48680a2bd9da2ff346295948a6718fbdc4055fca
parent916040d8b90d025d4445e97f3795907a6b65996c
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