diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-01-02 08:27:18 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-02 09:27:46 (GMT) |
commit | c64d8996bd758cedc2ddc04b86ca66fa1d8599cf (patch) | |
tree | 527af3c84a8e8f10fd611f6ee5fca7a3a788f372 /arch | |
parent | 7820b75643a763abf595c99fab963000ffc8b5f0 (diff) | |
download | linux-fsl-qoriq-c64d8996bd758cedc2ddc04b86ca66fa1d8599cf.tar.xz |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/early_printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c index 23b138e..504ad19 100644 --- a/arch/x86/kernel/early_printk.c +++ b/arch/x86/kernel/early_printk.c @@ -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); } |