Re: [PATCH] Make

From: Arjan van de Ven
Date: Tue May 20 2008 - 10:16:39 EST


On Mon, 19 May 2008 23:24:48 -0400
Dave Jones <davej@xxxxxxxxxx> wrote:

> printk(KERN_ERR "list_add corruption. next->prev
> should be " "prev (%p), but was %p. (next=%p).\n",
> prev, next->prev, next);
> - BUG();
> + WARN_ON(1);
> }


now that -mm has a WARN(condition, printk arguments), could we make
this use it? The advantage (apart from smaller C code) is that it puts
the printk inside the ---[ cut here ]--- which makes it more likely that
reporters (and kerneloops.org) get the actual text....

--
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/