* Cyrill Gorcunov <gorcu...@gmail.com> wrote:

> +#
> +#define BUILD_BUG_ON(condition)      ((void)sizeof(char[1 - 
> 2*!!(condition)]))
> +#define BUG_ON(condition)    assert(!(condition))

Just a sidenote, the patch is fine but the above will result in 
weird double negated assertion messages.

it's better to just do our own __BUG() function and use it. That 
way it can also use the kernel standard 'BUG: ...' message 
format.

To make such BUG()s easier to debug via GDB, do this from the 
__BUG() handler:

        raise(SIGABRT);

GDB will catch that signal.

Thanks,

        Ingo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to