uboot/lib
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
..
libfdt libfdt: Implement property iteration functions 2011-07-14 21:10:34 -04:00
lzma Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
lzo
zlib zlib: fix DEBUG build 2011-05-12 19:30:29 +02:00
Makefile scaled down version of generic libraries for SPL 2011-07-26 14:44:25 +02:00
addr_map.c
asm-offsets.c Small coding style fix in lib/asm-offsets.c 2011-01-17 22:55:58 +01:00
bzlib.c
bzlib_crctable.c
bzlib_decompress.c
bzlib_huffman.c
bzlib_private.h
bzlib_randtable.c
circbuf.c
crc7.c lib: add crc7 from Linux 2011-01-18 23:38:08 +01:00
crc16.c
crc32.c
ctype.c ctype: constify lookup table 2010-11-28 21:58:29 +01:00
display_options.c unify version_string 2011-07-28 17:22:53 +02:00
div64.c
errno.c
gunzip.c Fix gunzip to work for any gziped uImage size 2011-04-12 22:58:30 +02:00
hashtable.c Constify getenv(), setenv() and hash code functions 2011-07-30 01:37:44 +02:00
ldiv.c
lmb.c
md5.c
net_utils.c string_to_ip: constify "s" arg 2010-11-28 21:56:39 +01:00
qsort.c Add assert() for debug assertions 2011-09-10 00:04:01 +02:00
rbtree.c
sha1.c
sha256.c
string.c memcpy/memmove: Do not copy to same address 2011-07-26 00:28:44 +02:00
strmhz.c strmhz: Make hz unsigned to support greater than 2146 MHz clock 2011-03-22 23:34:36 +01:00
time.c
vsprintf.c Add assert() for debug assertions 2011-09-10 00:04:01 +02:00