Re: [2.6 patch][3/3] mm/ BUG -> BUG_ON conversions

From: Jens Axboe
Date: Sun Aug 29 2004 - 07:08:03 EST


On Sat, Aug 28 2004, Adrian Bunk wrote:
> On Sat, Aug 28, 2004 at 10:58:23PM +0200, Jens Axboe wrote:
> >
> > BUG_ON(1); must always BUG(). That said, it's never wise to put
> > expressions with side-effects into macros.
>
> The intention is, to add an option that lets BUG/BUG_ON/WARN_ON/PAGE_BUG
> do nothing. This option should be hidden under EMBEDDED.
>
> In some environments, this seems to be desirable.

That only makes sense if you are using BUG incorrectly. A BUG()
condition is something that is non-recoverable, undefining that doesn't
make any sense regardless of the environment.

--
Jens Axboe

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