Commit aecc6361 authored by Andi Kleen's avatar Andi Kleen Committed by Andi Kleen

[PATCH] Fix coding style and output of the mptable parser

Give the printks a consistent prefix.
Add some missing white space.

Cc: len.brown@intel.com
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent e4251e13
...@@ -205,7 +205,7 @@ static int __init smp_read_mpc(struct mp_config_table *mpc) ...@@ -205,7 +205,7 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
unsigned char *mpt=((unsigned char *)mpc)+count; unsigned char *mpt=((unsigned char *)mpc)+count;
if (memcmp(mpc->mpc_signature,MPC_SIGNATURE,4)) { if (memcmp(mpc->mpc_signature,MPC_SIGNATURE,4)) {
printk("SMP mptable: bad signature [%c%c%c%c]!\n", printk("MPTABLE: bad signature [%c%c%c%c]!\n",
mpc->mpc_signature[0], mpc->mpc_signature[0],
mpc->mpc_signature[1], mpc->mpc_signature[1],
mpc->mpc_signature[2], mpc->mpc_signature[2],
...@@ -213,31 +213,31 @@ static int __init smp_read_mpc(struct mp_config_table *mpc) ...@@ -213,31 +213,31 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
return 0; return 0;
} }
if (mpf_checksum((unsigned char *)mpc,mpc->mpc_length)) { if (mpf_checksum((unsigned char *)mpc,mpc->mpc_length)) {
printk("SMP mptable: checksum error!\n"); printk("MPTABLE: checksum error!\n");
return 0; return 0;
} }
if (mpc->mpc_spec!=0x01 && mpc->mpc_spec!=0x04) { if (mpc->mpc_spec!=0x01 && mpc->mpc_spec!=0x04) {
printk(KERN_ERR "SMP mptable: bad table version (%d)!!\n", printk(KERN_ERR "MPTABLE: bad table version (%d)!!\n",
mpc->mpc_spec); mpc->mpc_spec);
return 0; return 0;
} }
if (!mpc->mpc_lapic) { if (!mpc->mpc_lapic) {
printk(KERN_ERR "SMP mptable: null local APIC address!\n"); printk(KERN_ERR "MPTABLE: null local APIC address!\n");
return 0; return 0;
} }
memcpy(str,mpc->mpc_oem,8); memcpy(str,mpc->mpc_oem,8);
str[8]=0; str[8] = 0;
printk(KERN_INFO "OEM ID: %s ",str); printk(KERN_INFO "MPTABLE: OEM ID: %s ",str);
memcpy(str,mpc->mpc_productid,12); memcpy(str,mpc->mpc_productid,12);
str[12]=0; str[12] = 0;
printk("Product ID: %s ",str); printk("MPTABLE: Product ID: %s ",str);
printk("APIC at: 0x%X\n",mpc->mpc_lapic); printk("MPTABLE: APIC at: 0x%X\n",mpc->mpc_lapic);
/* save the local APIC address, it might be non-default */ /* save the local APIC address, it might be non-default */
if (!acpi_lapic) if (!acpi_lapic)
mp_lapic_addr = mpc->mpc_lapic; mp_lapic_addr = mpc->mpc_lapic;
/* /*
* Now process the configuration blocks. * Now process the configuration blocks.
...@@ -249,7 +249,7 @@ static int __init smp_read_mpc(struct mp_config_table *mpc) ...@@ -249,7 +249,7 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
struct mpc_config_processor *m= struct mpc_config_processor *m=
(struct mpc_config_processor *)mpt; (struct mpc_config_processor *)mpt;
if (!acpi_lapic) if (!acpi_lapic)
MP_processor_info(m); MP_processor_info(m);
mpt += sizeof(*m); mpt += sizeof(*m);
count += sizeof(*m); count += sizeof(*m);
break; break;
...@@ -268,8 +268,8 @@ static int __init smp_read_mpc(struct mp_config_table *mpc) ...@@ -268,8 +268,8 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
struct mpc_config_ioapic *m= struct mpc_config_ioapic *m=
(struct mpc_config_ioapic *)mpt; (struct mpc_config_ioapic *)mpt;
MP_ioapic_info(m); MP_ioapic_info(m);
mpt+=sizeof(*m); mpt += sizeof(*m);
count+=sizeof(*m); count += sizeof(*m);
break; break;
} }
case MP_INTSRC: case MP_INTSRC:
...@@ -278,8 +278,8 @@ static int __init smp_read_mpc(struct mp_config_table *mpc) ...@@ -278,8 +278,8 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
(struct mpc_config_intsrc *)mpt; (struct mpc_config_intsrc *)mpt;
MP_intsrc_info(m); MP_intsrc_info(m);
mpt+=sizeof(*m); mpt += sizeof(*m);
count+=sizeof(*m); count += sizeof(*m);
break; break;
} }
case MP_LINTSRC: case MP_LINTSRC:
...@@ -287,15 +287,15 @@ static int __init smp_read_mpc(struct mp_config_table *mpc) ...@@ -287,15 +287,15 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
struct mpc_config_lintsrc *m= struct mpc_config_lintsrc *m=
(struct mpc_config_lintsrc *)mpt; (struct mpc_config_lintsrc *)mpt;
MP_lintsrc_info(m); MP_lintsrc_info(m);
mpt+=sizeof(*m); mpt += sizeof(*m);
count+=sizeof(*m); count += sizeof(*m);
break; break;
} }
} }
} }
clustered_apic_check(); clustered_apic_check();
if (!num_processors) if (!num_processors)
printk(KERN_ERR "SMP mptable: no processors registered!\n"); printk(KERN_ERR "MPTABLE: no processors registered!\n");
return num_processors; return num_processors;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment