[U-Boot] [PATCH] Add assert() for debug assertions

Mike Frysinger vapier at gentoo.org
Fri Jun 24 01:03:04 CEST 2011


On Thursday, June 23, 2011 17:39:12 Simon Glass wrote:
> - BUG_ON: halt/reset even in production code, used for production code
> and critical faults where continued execution is certainly pointless
> or counterproductive. Like your ASSERT_ALWAYS I think.

if we're going to go this route, then we should just take the API linux 
already has.  that means WARN/WARN_ON/BUG/BUG_ON.  we've got more in common 
with linux than we'll ever have with symbian.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110623/f5b2ef45/attachment.pgp 


More information about the U-Boot mailing list