Simon Glass 21726a7afc Add assert() for debug assertions
assert() is like BUG_ON() but compiles to nothing unless DEBUG is defined.
This is useful when a condition is an error but a board reset is unlikely
to fix it, so it is better to soldier on in hope. Assertion failures should
be caught during development/test.

It turns out that assert() is defined separately in a few places in U-Boot
with various meanings. This patch cleans up some of these.

Build errors exposed by this change (and defining DEBUG) are also fixed in
this patch.

Signed-off-by: Simon Glass <sjg@chromium.org>
2011-09-10 00:04:01 +02:00
..
2011-04-13 15:56:39 -04:00
2010-11-28 21:58:24 +01:00
2011-07-28 16:32:50 +02:00
2010-07-24 20:54:46 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2011-04-13 15:57:00 -04:00
2011-07-28 16:32:50 +02:00
2011-07-26 14:10:14 +02:00
2011-04-08 00:44:27 -04:00
2011-07-28 16:41:06 +02:00
2011-01-09 18:06:50 +01:00
2011-04-29 03:20:01 -05:00
2011-07-15 20:29:22 -05:00
2010-12-17 14:32:12 -06:00
2010-07-16 10:55:09 -05:00
2011-07-26 14:10:14 +02:00
2011-07-26 14:10:14 +02:00
2010-10-12 23:31:10 +02:00
2011-07-28 17:22:53 +02:00
2011-07-26 16:34:41 +02:00
2011-09-10 00:04:01 +02:00
2011-07-26 16:34:22 +02:00
2011-07-26 16:34:22 +02:00
2011-04-13 19:43:28 +10:00
2011-02-02 22:36:10 +01:00
2011-09-07 21:46:39 +02:00
2011-07-28 17:22:53 +02:00
2011-09-04 11:36:22 +02:00
2011-09-04 23:27:52 +02:00