Skip to contentSkip to conversation

x86, apic: Make "broken BIOS!!" messages unique

PATCH In review John Villalovos 3 participants 3 messages Feb 7, 2011 x86

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86, apic: Make "broken BIOS!!" messages unique

x86, apic: Make "broken BIOS!!" messages unique

There are five identical "broken BIOS!!" messages. This patch makes each message unique so that it is easier to determine which message was actually printed. Changed to "broken MPBIOS: <unique identifier>!!"

The 'inconceivable' messages are because it should not be possible to reach those code paths.

V2: Change to specify MPBIOS and remove exclamation marks.

arch/x86/kernel/apic/io_apic.c +5 -5
index 697dc34..5391276 100644
@@ -841,7 +841,7 @@ static int MPBIOS_polarity(int idx)
 		}
 		case 2: /* reserved */
 		{
-			printk(KERN_WARNING "broken BIOS!!\n");
+			printk(KERN_WARNING "broken MPBIOS: polarity\n");
 			polarity = 1;
 			break;
 		}
@@ -852,7 +852,7 @@ static int MPBIOS_polarity(int idx)
 		}
 		default: /* invalid */
 		{
-			printk(KERN_WARNING "broken BIOS!!\n");
+			printk(KERN_WARNING "broken MPBIOS: inconceivable polarity\n");
 			polarity = 1;
 			break;
 		}
@@ -899,7 +899,7 @@ static int MPBIOS_trigger(int idx)
 				}
 				default:
 				{
-					printk(KERN_WARNING "broken BIOS!!\n");
+					printk(KERN_WARNING "broken MPBIOS: unknown bus type\n");
 					trigger = 1;
 					break;
 				}
@@ -913,7 +913,7 @@ static int MPBIOS_trigger(int idx)
 		}
 		case 2: /* reserved */
 		{
-			printk(KERN_WARNING "broken BIOS!!\n");
+			printk(KERN_WARNING "broken MPBIOS: trigger\n");
 			trigger = 1;
 			break;
 		}
@@ -924,7 +924,7 @@ static int MPBIOS_trigger(int idx)
 		}
 		default: /* invalid */
 		{
-			printk(KERN_WARNING "broken BIOS!!\n");
+			printk(KERN_WARNING "broken MPBIOS: inconceivable trigger\n");
 			trigger = 0;
 			break;
 		}
#1 lore raw
Quoted 4 lines · John Villalovos

The 'inconceivable' messages are because it should not be possible to reach those code paths.

More standard terminology would be "invalid" or "impossible". "Inconceivable" sounds like a combination of legal values which just don't make sense.

-hpa

#2 lore raw
Quoted 7 lines · H. Peter Anvin
Quoted 3 lines · John Villalovos

The 'inconceivable' messages are because it should not be possible to reach those code paths.

More standard terminology would be "invalid" or "impossible". "Inconceivable" sounds like a combination of legal values which just don't make sense.

To be honest I used it in homage to The Princess Bride movie. And frankly it is 'inconcievable' that code will ever be called :)

John