printk: re-organize log_output() to be more legible
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 9 Oct 2016 18:53:00 +0000 (11:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 9 Oct 2016 19:23:40 +0000 (12:23 -0700)
commit5e467652ffefb84b1159d5d8fda665c48e5fd840
treebed19a06e5984b1d05816bd0a8e8178f0fef6aa4
parentc362c7ff84634390b44cc1ae7808519596de162d
printk: re-organize log_output() to be more legible

Avoid some duplicate logic now that we can return early, and update the
comments for the new LOG_CONT world order.

This also stops the continuation flushing from just using random record
flags for the flushing action, instead taking the flags from the proper
original line and updating them as we add continuations to it.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk/printk.c