Skip to content

Commit

Permalink
printk: reduce setup_text_buf size to LOG_LINE_MAX
Browse files Browse the repository at this point in the history
@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
  • Loading branch information
John Ogness authored and Petr Mladek committed Sep 30, 2020
1 parent 59f8bcc commit 0463d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/printk/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 0463d04

Please sign in to comment.