Mirror of DTC
Find a file
David Gibson 5434fcc7e0 libfdt: Fix fdt_strerror() bugs
This fixes several small bugs related to fdt_strerror().
	- an entry is added to the error table for FDT_ERR_BADLAYOUT.
	- Incorrect usage of fdt_strerror() in check_property() and
check_getprop() is corrected (they were passing a positive error code,
when fdt_strerror() expects a negative code).
	- Add code to properly retreive an error code from
fdt_get_property() in check_property().  With that a check that the
length returned by fdt_get_property() matches that stored in the
retreived property.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-02-23 14:40:10 +11:00
tests libfdt: Fix fdt_strerror() bugs 2007-02-23 14:40:10 +11:00
.gitignore libfdt - library for manipulating device trees in flattened format 2006-11-27 16:21:28 +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_strerror.c libfdt: Fix fdt_strerror() bugs 2007-02-23 14:40:10 +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
GPL Add a copy of the GPL 2006-11-29 16:49:27 +11:00
libfdt.h libfdt: Add fdt_strerror() function to library 2006-12-21 09:57:08 +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
Makefile libfdt: Add fdt_strerror() function to library 2006-12-21 09:57:08 +11:00
TODO libfdt: Add fdt_strerror() function to library 2006-12-21 09:57:08 +11:00