diff options
author | John Ogness <john.ogness@linutronix.de> | 2020-09-30 11:07:34 +0206 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2020-09-30 13:54:21 +0200 |
commit | 0463d04ea03a12d8a5aad42197a5945dfd78d7d6 (patch) | |
tree | cd2e868a5952ec5495c01b0379e4ac556866af57 /kernel/printk | |
parent | 59f8bcca1ef6a5326f7c127e11b949e745bfa230 (diff) | |
download | linux-0463d04ea03a12d8a5aad42197a5945dfd78d7d6.tar.bz2 |
printk: reduce setup_text_buf size to LOG_LINE_MAX
@setup_text_buf only copies the original text messages (without any
prefix or extended text). It only needs to be LOG_LINE_MAX in size.
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/20200930090134.8723-3-john.ogness@linutronix.de
Diffstat (limited to 'kernel/printk')
-rw-r--r-- | kernel/printk/printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 15cd73da0528..f5c2945d1e3f 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1095,7 +1095,7 @@ static unsigned int __init add_to_rb(struct printk_ringbuffer *rb, return prb_record_text_space(&e); } -static char setup_text_buf[CONSOLE_EXT_LOG_MAX] __initdata; +static char setup_text_buf[LOG_LINE_MAX] __initdata; void __init setup_log_buf(int early) { |