Skip to content
Commit c362c7ff authored by Linus Torvalds's avatar Linus Torvalds
Browse files

printk: split out core logging code into helper function



The code that actually decides how to log the message (whether to put it
directly into the record log, whether to append it to an existing
buffered log, or whether to start a new buffered log) is fairly
non-obvious code in the middle of the vprintk_emit() function.

Splitting that code up into a helper function makes it easier to
understand, but perhaps more importantly also allows for the code to
just return early out of the helper function once it has made the
decision about where the new log content goes.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4bcc595c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment