libfdt: add missing errors to fdt_strerror()
PATCH 1/1 libfdt: add missing errors to fdt_strerror()
Some error values were missing from the table which meant that they could not be translated by fdt_strerror().
Signed-off-by Benjamin Fair <[email protected]>
--- libfdt/fdt_strerror.c | 3 +++ 1 file changed, 3 insertions(+)
libfdt/fdt_strerror.c +3 -0
@@ -77,6 +77,9 @@ static struct fdt_errtabent fdt_errtable[] = {FDT_ERRTABENT (FDT_ERR_BADVERSION ),FDT_ERRTABENT (FDT_ERR_BADSTRUCTURE ),FDT_ERRTABENT (FDT_ERR_BADLAYOUT ), +FDT_ERRTABENT (FDT_ERR_INTERNAL ), +FDT_ERRTABENT (FDT_ERR_BADNCELLS ), +FDT_ERRTABENT (FDT_ERR_BADVALUE ),FDT_ERRTABENT (FDT_ERR_BADOVERLAY ), FDT_ERRTABENT(FDT_ERR_NOPHANDLES), };
Signature · 1 line
1.9.1
A message that is not in the archive (sent off-list or not yet received): 1478188062-8219-1-git-send-email-b-fair-l0cyMroinI0@public.gmane.org
David Gibson
AppliedQuoted 4 lines · Benjamin Fair
Some error values were missing from the table which meant that they could not be translated by
fdt_strerror().Signed-off-by Benjamin Fair <[email protected]>
Applied, thanks.
Quoted 18 lines
--- libfdt/fdt_strerror.c | 3 +++ 1 file changed, 3 insertions(+)libfdt/fdt_strerror.c +3
-0@@ -77,6 +77,9 @@ static struct fdt_errtabent fdt_errtable[] = {FDT_ERRTABENT (FDT_ERR_BADVERSION ),FDT_ERRTABENT (FDT_ERR_BADSTRUCTURE ),FDT_ERRTABENT (FDT_ERR_BADLAYOUT ), +FDT_ERRTABENT (FDT_ERR_INTERNAL ), +FDT_ERRTABENT (FDT_ERR_BADNCELLS ), +FDT_ERRTABENT (FDT_ERR_BADVALUE ),FDT_ERRTABENT (FDT_ERR_BADOVERLAY ), FDT_ERRTABENT(FDT_ERR_NOPHANDLES), };
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson