diff options
author | John Ogness <john.ogness@linutronix.de> | 2022-04-21 23:28:45 +0206 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2022-04-22 21:30:58 +0200 |
commit | 03a749e628fdbc665d7f9712637f880a79da8b78 (patch) | |
tree | ef46743af8d3e2adea17ffd5554ebc869d1fa2ee /lib/atomic64.c | |
parent | a699449bb13b70b8bd10dc03ad7327ea3993221e (diff) |
printk: move buffer definitions into console_emit_next_record() caller
Extended consoles print extended messages and do not print messages about
dropped records.
Non-extended consoles print "normal" messages as well as extra messages
about dropped records.
Currently the buffers for these various message types are defined within
the functions that might use them and their usage is based upon the
CON_EXTENDED flag. This will be a problem when moving to kthread printers
because each printer must be able to provide its own buffers.
Move all the message buffer definitions outside of
console_emit_next_record(). The caller knows if extended or dropped
messages should be printed and can specify the appropriate buffers to
use. The console_emit_next_record() and call_console_driver() functions
can know what to print based on whether specified buffers are non-NULL.
With this change, buffer definition/allocation/specification is separated
from the code that does the various types of string printing.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20220421212250.565456-11-john.ogness@linutronix.de
Diffstat (limited to 'lib/atomic64.c')
0 files changed, 0 insertions, 0 deletions