printk: introduce CONSOLE_LOG_MAX
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 3 Mar 2021 10:15:20 +0000 (11:15 +0100)
committerPetr Mladek <pmladek@suse.com>
Mon, 8 Mar 2021 10:43:12 +0000 (11:43 +0100)
commitcf5b0208fda4602d0ef383a86e942fb3dcb8852b
tree5c70fd066270915b8726d7dd88e19d35fa30d72a
parent4260e0e5510158d704898603331e5365ebe957de
printk: introduce CONSOLE_LOG_MAX

Instead of using "LOG_LINE_MAX + PREFIX_MAX" for temporary buffer
sizes, introduce CONSOLE_LOG_MAX. This represents the maximum size
that is allowed to be printed to the console for a single record.

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/20210303101528.29901-8-john.ogness@linutronix.de
kernel/printk/printk.c