Skip to contentSkip to conversation

libfdt: add missing errors to fdt_strerror()

PATCH Applied Benjamin Fair 2 participants 2 messages Nov 3, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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().

---
 libfdt/fdt_strerror.c | 3 +++
 1 file changed, 3 insertions(+)
libfdt/fdt_strerror.c +3 -0
index 4ab3eb7..9677a18 100644
@@ -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

Applied
#2 lore raw
Quoted 4 lines · Benjamin Fair

Some error values were missing from the table which meant that they could not be translated by fdt_strerror().

Applied, thanks.

Quoted 18 lines
---
 libfdt/fdt_strerror.c | 3 +++
 1 file changed, 3 insertions(+)
libfdt/fdt_strerror.c +3 -0
index 4ab3eb7..9677a18 100644
@@ -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