Go to file
David Gibson 3aea828501 libfdt: Clean up error codes
First, this patch removes several underused error codes:
FDT_ERR_BADPOINTER and FDT_ERR_BADHEADER were not used at all and are
simply removed.  FDT_ERR_SIZE_MISMATCH was very similar in spirit to
FDT_ERR_NOSPACE, and used only in circumstances where there can be no
confusion between the two, so is removed and folded into
FDT_ERR_NOSPACE.  FDT_ERR_INTERAL was used on only one place, on a
"can't happen" check.  It seems of little value so the check and error
code are removed also.

Second, the error codes have been re-numbered and grouped roughly by
severity.  That is codes which can reasonably occur in normal
operation separated from those which indicate bad parameters (and
therefore a bug in the caller) or a bad or corrupted device tree blob.

Third the test function fdt_strerror() is cleaned up a little based on
these changes.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2006-12-15 15:12:52 +11:00
tests libfdt: Clean up error codes 2006-12-15 15:12:52 +11:00
.gitignore libfdt - library for manipulating device trees in flattened format 2006-11-27 16:21:28 +11:00
GPL Add a copy of the GPL 2006-11-29 16:49:27 +11:00
Makefile libfdt: Read-write support 2006-12-01 16:59:43 +11:00
fdt.c libfdt: More consistent handling of returned error codes. 2006-12-15 15:12:51 +11:00
fdt.h libfdt: Introduce flat tree format v17 2006-12-01 16:25:39 +11:00
fdt_ro.c libfdt: Clean up error codes 2006-12-15 15:12:52 +11:00
fdt_rw.c libfdt: More consistent handling of returned error codes. 2006-12-15 15:12:51 +11:00
fdt_sw.c libfdt: More consistent handling of returned error codes. 2006-12-15 15:12:51 +11:00
fdt_wip.c libfdt: Clean up error codes 2006-12-15 15:12:52 +11:00
libfdt.h libfdt: Clean up error codes 2006-12-15 15:12:52 +11:00
libfdt_env.h libfdt: Export accessors for header fields 2006-12-01 15:02:10 +11:00
libfdt_internal.h libfdt: More consistent handling of returned error codes. 2006-12-15 15:12:51 +11:00