Messages in this thread Patch in this message | | | Date | Fri, 02 Jan 2009 11:27:18 +0300 | From | Cyrill Gorcunov <> | Subject | [patch 1/3] early_printk - use sizeof instead of hardcoded number |
| |
Impact: cleanup
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> --- arch/x86/kernel/early_printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.git/arch/x86/kernel/early_printk.c =================================================================== --- linux-2.6.git.orig/arch/x86/kernel/early_printk.c +++ linux-2.6.git/arch/x86/kernel/early_printk.c @@ -886,7 +886,7 @@ asmlinkage void early_printk(const char 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); } --
| |