lkml.org 
[lkml]   [2001]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Fwd: binutils in debian unstable is broken.
On Wed, 5 Dec 2001, Eric Lammerts wrote:

> We can get a panic() call (and remove the ugly #ifdef's) with
> something like this:
>
> in some .h file:
>
> #ifdef DEVEXIT_LINKED
> #define DEVEXIT_FUNC(a) (a)
> #else
> void panic_exit_code();
> #define DEVEXIT_FUNC(a) ((typeof((a)) *)panic_exit_code)
> #endif

I definitely prefer this kind of encapsulation over #ifdef DEVEXIT_LINKED
everywhere, it's still ugly, though.

However, I don't see much advantage of panic_exit_code() over a simple
NULL. Actually, NULL will only oops, but not take the machine down, which
makes it easier to catch and report the Oops. (Not everyone who's box
crashes under X will setup a serial console).

--Kai

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.045 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site