Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);
}
}