projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7820b75
)
x86: early_printk - use sizeof instead of hardcoded number
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Fri, 2 Jan 2009 08:27:18 +0000
(11:27 +0300)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 2 Jan 2009 09:27:46 +0000
(10:27 +0100)
Impact: cleanup
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/early_printk.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/early_printk.c
b/arch/x86/kernel/early_printk.c
index 23b138e31e9c2fe229c42050ab2c5e864cac4710..504ad198e4ad0f999b43dfbb16f1957305e71ffe 100644
(file)
--- 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);
}