x86: early_printk - use sizeof instead of hardcoded number
Impact: cleanup Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
7820b75643
commit
c64d8996bd
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user