[U-Boot] [PATCH v2] Add assert() for debug assertions
Mike Frysinger
vapier at gentoo.org
Fri Jun 24 20:15:25 CEST 2011
On Fri, Jun 24, 2011 at 14:13, Simon Glass wrote:
> On Thu, Jun 23, 2011 at 10:33 PM, Wolfgang Denk wrote:
>> Finally, should the assert() not result in some termination or hang of
>> U-Boot, like assert(3) is doing?
>
> I'm happy either way so long as it prints a message. A hang is better
> than a reboot for those with ICE units, etc. My intention was that it
> would simply print the message and try to continue (since we can't
> really 'terminate' U-Boot, and it continues with DEBUG not defined).
use panic() instead of printf() and then the hang-vs-reset issue is
made into a board-config issue (CONFIG_PANIC_HANG)
-mike
More information about the U-Boot
mailing list