diff options
author | Michael Brown <mcb30@ipxe.org> | 2010-05-30 15:29:05 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-05-31 03:11:57 +0100 |
commit | 6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac (patch) | |
tree | b04dd064c978bf0525649e9d1b936a9724deadaf /src/include/ipxe/errortab.h | |
parent | d2415be06935a270a45fc62db18c5730f71171cb (diff) | |
download | ipxe-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.h | 5 |
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 */ |