halt/reset on assert?

Evan Lavelle sa212+lppc at cyconix.com
Wed Apr 6 23:01:07 EST 2011


Hi Andreas -

that's great; thanks. I'm on 2.4.4, which doesn't have BUG_ON. The right 
way for 2.4.4 turns out to be

#define MY_ASSERT(expr) if(!(expr)) BUG()

-Evan


More information about the Linuxppc-dev mailing list