Subject: Re: kernel panic messages
To: None <>
From: Greg A. Woods <>
List: tech-kern
Date: 05/04/2003 16:18:17
[ On Sunday, May 4, 2003 at 06:35:17 (-0600), M. Warner Losh wrote: ]
> Subject: Re: kernel panic messages
> There's a standard way to do this that doesn't depend on gccisms.
> That's iso-99 not iso-89, however.
> #define panic(...) _panic(__FILE__, __LINE__, __VA_ARGS__);

I think there's a normal C way to do it too of course, if you allow for
a two-step procedure...

	#define panic(varags)	{ _panic_setup(__FILE__, __LINE__); _panic varargs; }

where all calls are simply modified to have an extra set of parentheses
around their parameters:

	panic(("help! %s", message));

								Greg A. Woods

+1 416 218-0098;            <>;           <>
Planix, Inc. <>; VE3TCP; Secrets of the Weird <>