18#define FDT_ERRTABENT(val) \
19 [(val)] = { .str = #val, }
44#define FDT_ERRTABSIZE ((int)(sizeof(fdt_errtable) / sizeof(fdt_errtable[0])))
49 return "<valid offset/length>";
59 return "<unknown error>";
static struct fdt_errtabent fdt_errtable[]
#define FDT_ERRTABENT(val)
const char * fdt_strerror(int errval)
#define FDT_ERR_BADPHANDLE
#define FDT_ERR_TRUNCATED
#define FDT_ERR_ALIGNMENT
#define FDT_ERR_BADOFFSET
#define FDT_ERR_NOPHANDLES
#define FDT_ERR_BADOVERLAY
#define FDT_ERR_BADNCELLS
#define FDT_ERR_BADVERSION
#define FDT_ERR_BADLAYOUT
#define FDT_ERR_BADSTRUCTURE