summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/errortab.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ipxe/errortab.h')
-rw-r--r--src/include/ipxe/errortab.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/ipxe/errortab.h b/src/include/ipxe/errortab.h
index 945cde31c..a2f6a70f5 100644
--- a/src/include/ipxe/errortab.h
+++ b/src/include/ipxe/errortab.h
@@ -20,4 +20,9 @@ struct errortab {
#define __errortab __table_entry ( ERRORTAB, 01 )
+#define __einfo_errortab( einfo ) { \
+ .errno = __einfo_errno ( einfo ), \
+ .text = __einfo_desc ( einfo ), \
+ }
+
#endif /* _IPXE_ERRORTAB_H */