projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59f8bcc
)
printk: reduce setup_text_buf size to LOG_LINE_MAX
author
John Ogness
<john.ogness@linutronix.de>
Wed, 30 Sep 2020 09:01:34 +0000
(11:07 +0206)
committer
Petr Mladek
<pmladek@suse.com>
Wed, 30 Sep 2020 11:54:21 +0000
(13:54 +0200)
@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
kernel/printk/printk.c
patch
|
blob
|
history
diff --git
a/kernel/printk/printk.c
b/kernel/printk/printk.c
index 15cd73da05286907de2e19991130742e467861f0..f5c2945d1e3f486b391d876ed95daf991344f7c6 100644
(file)
--- 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)
{