patch-2.4.7 linux/arch/mips64/arc/identify.c
Next file: linux/arch/mips64/arc/memory.c
Previous file: linux/arch/mips64/arc/console.c
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
Wed Jul  4 11:50:39 2001
-  Orig file: 
v2.4.6/linux/arch/mips64/arc/identify.c
-  Orig date: 
Sun Jul  9 22:18:15 2000
diff -u --recursive --new-file v2.4.6/linux/arch/mips64/arc/identify.c linux/arch/mips64/arc/identify.c
@@ -42,14 +42,11 @@
 {
 	int i;
     
-	for (i = 0; i < sizeof (mach_table); i++) {
+	for (i = 0; i < (sizeof (mach_table) / sizeof (mach_table[0])); i++) {
 		if(!strcmp(s, mach_table[i].name))
 			return &mach_table[i];
 	}
-	prom_printf("\nYeee, could not determine architecture type <%s>\n", s);
-	prom_printf("press a key to reboot\n");
-	prom_getchar();
-	ArcEnterInteractiveMode();
+	panic("\nYeee, could not determine architecture type <%s>", s);
 
 	return NULL;
 }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)