* [i386] Remove bogus panic calls in mpparse.c
@ 2003-11-13 9:57 Herbert Xu
0 siblings, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2003-11-13 9:57 UTC (permalink / raw)
To: Linus Torvalds, Marcelo Tosatti, Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]
Hi:
This patch was based on a patch from Jochen Voss who owns a laptop
affected by this (http://seehuhn.de/comp/toshiba.html).
It replaces a couple of panic calls with printk instead. They're
bogus because:
1. It's not fatal.
2. The user won't see it since the console hasn't initialised yet.
Cheers,
--
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[-- Attachment #2: p --]
[-- Type: text/plain, Size: 1059 bytes --]
Index: kernel-source-2.5/arch/i386/kernel/mpparse.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/arch/i386/kernel/mpparse.c,v
retrieving revision 1.1.1.15
diff -u -r1.1.1.15 mpparse.c
--- kernel-source-2.5/arch/i386/kernel/mpparse.c 17 Oct 2003 21:43:00 -0000 1.1.1.15
+++ kernel-source-2.5/arch/i386/kernel/mpparse.c 13 Nov 2003 09:48:50 -0000
@@ -361,15 +361,12 @@
unsigned char *mpt=((unsigned char *)mpc)+count;
if (memcmp(mpc->mpc_signature,MPC_SIGNATURE,4)) {
- panic("SMP mptable: bad signature [%c%c%c%c]!\n",
- mpc->mpc_signature[0],
- mpc->mpc_signature[1],
- mpc->mpc_signature[2],
- mpc->mpc_signature[3]);
+ printk(KERN_ERR "SMP mptable: bad signature [0x%x]!\n",
+ *(u32 *)mpc->mpc_signature);
return 0;
}
if (mpf_checksum((unsigned char *)mpc,mpc->mpc_length)) {
- panic("SMP mptable: checksum error!\n");
+ printk(KERN_ERR "SMP mptable: checksum error!\n");
return 0;
}
if (mpc->mpc_spec!=0x01 && mpc->mpc_spec!=0x04) {
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-18 15:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20031113095721.GB27003@gondor.apana.org.au.suse.lists.linux.kernel>
2003-11-13 11:03 ` [i386] Remove bogus panic calls in mpparse.c Andi Kleen
2003-11-18 15:35 ` Martin J. Bligh
2003-11-13 9:57 Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®