aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/errortab.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-05-30 15:29:05 +0100
committerMichael Brown <mcb30@ipxe.org>2010-05-31 03:11:57 +0100
commit6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac (patch)
treeb04dd064c978bf0525649e9d1b936a9724deadaf /src/include/ipxe/errortab.h
parentd2415be06935a270a45fc62db18c5730f71171cb (diff)
downloadipxe-6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac.tar.gz
[libc] Enable automated extraction of error usage reports
Add preprocessor magic to the error definitions to enable every error usage to be tracked. Signed-off-by: Michael Brown <mcb30@ipxe.org>
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 */