[lkml]   [2001]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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).


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:13    [W:0.025 / U:10.060 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site