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
..
2010-08-09 01:07:37 +02:00
2011-07-04 10:55:25 +02:00
2010-07-24 20:43:57 +02:00
2011-02-09 21:32:20 +01:00
2011-04-13 15:56:39 -04:00
2011-04-08 00:44:27 -04:00
2011-09-05 16:07:44 +02:00
2011-07-26 14:30:08 +02:00
2010-07-04 23:55:42 +02:00
2010-08-09 01:07:37 +02:00
2011-05-10 22:47:32 +02:00
2010-08-09 01:06:34 +02:00
2010-11-28 21:58:24 +01:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-10-12 22:44:33 +02:00
2011-08-04 23:30:38 +02:00
2010-07-04 23:55:42 +02:00
2011-07-28 16:32:50 +02:00
2010-10-06 22:42:14 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:54:46 +02:00
2011-07-25 22:18:26 +02:00
2011-08-04 23:34:02 +02:00
2011-06-01 22:44:50 +02:00
2011-07-26 16:58:48 +02:00
2011-07-28 21:27:36 +02:00
2011-08-01 15:19:40 +02:00
2011-04-13 15:57:00 -04:00
2010-07-04 23:55:42 +02:00
2011-07-28 16:32:50 +02:00
2011-07-26 14:10:14 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2011-02-15 21:45:55 +01:00
2011-01-19 00:04:43 +01:00
2011-04-08 00:44:27 -04:00
2011-09-04 11:36:22 +02:00
2010-08-09 01:07:37 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2011-07-28 16:41:06 +02:00
2011-07-26 14:36:07 +02:00
2011-04-30 23:09:48 +02:00
2011-07-26 00:40:50 +02:00
2010-07-24 20:43:57 +02:00
2010-08-09 01:06:34 +02:00
2011-01-09 18:06:50 +01:00
2010-07-24 20:43:57 +02:00
2011-04-29 03:20:01 -05:00
2011-07-15 20:29:22 -05:00
2010-07-24 20:43:57 +02:00
2010-10-11 15:11:01 -05:00
2011-07-25 22:18:26 +02:00
2011-07-25 22:18:26 +02:00
2011-07-30 01:37:44 +02:00
2010-12-17 14:32:12 -06:00
2010-10-02 16:00:40 -04:00
2010-11-14 23:46:46 +01:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-16 10:55:09 -05:00
2010-07-24 20:43:57 +02:00
2011-07-26 14:10:14 +02:00
2011-07-26 14:10:14 +02:00
2010-07-24 20:43:57 +02:00
2011-09-07 23:39:36 +02:00
2011-07-26 14:33:10 +02:00
2010-07-04 23:55:42 +02:00
2010-10-06 20:50:38 -04:00
2010-08-09 01:07:37 +02:00
2010-08-09 01:07:37 +02:00
2010-07-04 23:55:42 +02:00
2010-07-04 23:55:42 +02:00
2010-10-12 23:31:10 +02:00
2011-03-21 10:02:16 +01:00
2010-12-03 18:24:04 +01:00
2010-07-04 23:55:42 +02:00
2011-04-13 15:56:47 -04:00
2011-07-25 22:18:26 +02:00
2011-07-28 17:22:53 +02:00
2011-07-26 14:11:21 +02:00
2011-09-10 00:00:15 +02:00
2011-07-26 16:34:41 +02:00
2010-11-28 21:58:48 +01:00
2011-04-04 09:24:43 -05:00
2011-09-10 00:04:01 +02:00
2011-07-26 16:34:22 +02:00
2010-12-17 21:07:14 +01:00
2010-12-17 21:07:14 +01:00
2011-07-26 16:33:49 +02:00
2011-07-26 16:34:22 +02:00
2010-09-19 19:29:48 +02:00
2011-04-04 22:26:16 -05:00
2011-05-24 16:08:44 -05:00
2010-09-19 19:29:48 +02:00
2010-12-17 21:07:14 +01:00
2010-12-17 21:07:14 +01:00
2011-04-28 00:46:01 +02:00
2011-04-13 19:43:28 +10:00
2011-07-14 21:43:45 -04:00
2010-09-20 15:08:51 +02:00
2011-05-10 23:19:07 +02:00
2011-02-02 22:36:10 +01:00
2011-09-07 21:46:39 +02:00
2010-07-04 23:55:42 +02:00
2011-01-27 00:20:59 +01:00
2011-07-28 17:22:53 +02:00
2011-09-04 11:36:22 +02:00
2011-07-17 17:11:53 +02:00
2011-07-26 14:00:24 +02:00
2011-08-02 21:46:53 +02:00
2011-09-04 23:27:52 +02:00
2011-07-26 16:58:44 +02:00
2011-07-26 14:10:14 +02:00
2011-08-08 22:00:12 +02:00
2011-07-28 21:27:36 +02:00