aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/io_apic.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-20 16:02:55 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-20 16:02:55 -0400
commit04c93ce4991fce731dab346d03964504339347db (patch)
tree839e1ee61ca084efb0791045fb1e0d16f02ddf79 /arch/x86/kernel/apic/io_apic.c
parent7f00a2495bf5b98b097c47be5d6e2d4114ec39bf (diff)
x86: fix IO APIC resource allocation error message
Impact: fix incorrect error message - IO APIC resource allocation error message contains one too many "be". - Print the error message iff there are IO APICs in the system. I've seen this error message for some time on my x86-32 laptop... Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Cc: Alan Bartlett <ajb.stxsl@googlemail.com> LKML-Reference: <200903202100.30789.bzolnier@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic/io_apic.c')
-rw-r--r--arch/x86/kernel/apic/io_apic.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 42cdc78427a2..d882c03604ee 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -4130,9 +4130,12 @@ static int __init ioapic_insert_resources(void)
4130 struct resource *r = ioapic_resources; 4130 struct resource *r = ioapic_resources;
4131 4131
4132 if (!r) { 4132 if (!r) {
4133 printk(KERN_ERR 4133 if (nr_ioapics > 0) {
4134 "IO APIC resources could be not be allocated.\n"); 4134 printk(KERN_ERR
4135 return -1; 4135 "IO APIC resources couldn't be allocated.\n");
4136 return -1;
4137 }
4138 return 0;
4136 } 4139 }
4137 4140
4138 for (i = 0; i < nr_ioapics; i++) { 4141 for (i = 0; i < nr_ioapics; i++) {