From: Cyrill Gorcunov Date: Fri, 2 Jan 2009 08:27:18 +0000 (+0300) Subject: x86: early_printk - use sizeof instead of hardcoded number X-Git-Tag: v2.6.29-rc1~536^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c64d8996bd758cedc2ddc04b86ca66fa1d8599cf;p=linux-2.6-omap-h63xx.git x86: early_printk - use sizeof instead of hardcoded number Impact: cleanup Signed-off-by: Cyrill Gorcunov Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c index 23b138e31e9..504ad198e4a 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); }