Skip to content

Commit

Permalink
x86: early_printk - use sizeof instead of hardcoded number
Browse files Browse the repository at this point in the history
Impact: cleanup

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Jan 2, 2009
1 parent 7820b75 commit c64d899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ asmlinkage void early_printk(const char *fmt, ...)
va_list ap;

va_start(ap, fmt);
n = vscnprintf(buf, 512, fmt, ap);
n = vscnprintf(buf, sizeof(buf), fmt, ap);
early_console->write(early_console, buf, n);
va_end(ap);
}
Expand Down

0 comments on commit c64d899

Please sign in to comment.