Re: [PATCH 2/7] Add assertion checking macros

From: David Howells
Date: Wed Oct 12 2011 - 16:37:25 EST


Jiri Slaby <jirislaby@xxxxxxxxx> wrote:

> Hmm, but why not have a single something-like-"ASSERT" doing the same as
> in userspace:

Because I want to print the values that were checked. Your suggestion merely
turns the unevaluated expression into a string and prints that. The values
are very useful to know in debugging the problem.

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