Commit c64d8996 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar

x86: early_printk - use sizeof instead of hardcoded number

Impact: cleanup
Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7820b756
...@@ -886,7 +886,7 @@ asmlinkage void early_printk(const char *fmt, ...) ...@@ -886,7 +886,7 @@ asmlinkage void early_printk(const char *fmt, ...)
va_list ap; va_list ap;
va_start(ap, fmt); va_start(ap, fmt);
n = vscnprintf(buf, 512, fmt, ap); n = vscnprintf(buf, sizeof(buf), fmt, ap);
early_console->write(early_console, buf, n); early_console->write(early_console, buf, n);
va_end(ap); va_end(ap);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment