x86: coding style fixes to arch/x86/kernel/early_printk.c
Before: total: 17 errors, 3 warnings, 254 lines checked After: total: 2 errors, 3 warnings, 254 lines checked paolo@paolo-desktop:/tmp/b$ md5sum * da32f5cd8f248970e4809e1005393e95 early_printk.o.after da32f5cd8f248970e4809e1005393e95 early_printk.o.before paolo@paolo-desktop:/tmp/b$ size * text data bss dec hex filename 1172 280 12 1464 5b8 early_printk.o.after 1172 280 12 1464 5b8 early_printk.o.befor Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
3f50dbc1ae
commit
e941f27a7a
|
@ -108,12 +108,12 @@ static __init void early_serial_init(char *s)
|
||||||
|
|
||||||
if (*s) {
|
if (*s) {
|
||||||
unsigned port;
|
unsigned port;
|
||||||
if (!strncmp(s,"0x",2)) {
|
if (!strncmp(s, "0x", 2)) {
|
||||||
early_serial_base = simple_strtoul(s, &e, 16);
|
early_serial_base = simple_strtoul(s, &e, 16);
|
||||||
} else {
|
} else {
|
||||||
static int bases[] = { 0x3f8, 0x2f8 };
|
static int bases[] = { 0x3f8, 0x2f8 };
|
||||||
|
|
||||||
if (!strncmp(s,"ttyS",4))
|
if (!strncmp(s, "ttyS", 4))
|
||||||
s += 4;
|
s += 4;
|
||||||
port = simple_strtoul(s, &e, 10);
|
port = simple_strtoul(s, &e, 10);
|
||||||
if (port > 1 || s == e)
|
if (port > 1 || s == e)
|
||||||
|
@ -202,9 +202,9 @@ void early_printk(const char *fmt, ...)
|
||||||
int n;
|
int n;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start(ap,fmt);
|
va_start(ap, fmt);
|
||||||
n = vscnprintf(buf,512,fmt,ap);
|
n = vscnprintf(buf, 512, fmt, ap);
|
||||||
early_console->write(early_console,buf,n);
|
early_console->write(early_console, buf, n);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue