summaryrefslogtreecommitdiffstats
path: root/src/hci/strerror.c
diff options
context:
space:
mode:
authorMichael Brown2010-05-30 16:29:05 +0200
committerMichael Brown2010-05-31 04:11:57 +0200
commit6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac (patch)
treeb04dd064c978bf0525649e9d1b936a9724deadaf /src/hci/strerror.c
parent[pxe] Remove obsolete pxe_errortab.c (diff)
downloadipxe-6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac.tar.gz
ipxe-6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac.tar.xz
ipxe-6c0e8c14be9546b49c097f5e6e8307bda3e7f5ac.zip
[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/hci/strerror.c')
-rw-r--r--src/hci/strerror.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/hci/strerror.c b/src/hci/strerror.c
index 1b75f980..3caee497 100644
--- a/src/hci/strerror.c
+++ b/src/hci/strerror.c
@@ -102,21 +102,21 @@ const char * strerror ( int errno ) {
/** The most common errors */
struct errortab common_errors[] __errortab = {
- { 0, "No error" },
- { EACCES, "Permission denied" },
- { ECANCELED, "Operation cancelled" },
- { ECONNRESET, "Connection reset" },
- { EINVAL, "Invalid argument" },
- { EIO, "Input/output error" },
- { ENETUNREACH, "Network unreachable" },
- { ENODEV, "No such device" },
- { ENOENT, "File not found" },
- { ENOEXEC, "Not an executable image" },
- { ENOMEM, "Out of memory" },
- { ENOSPC, "No space left on device" },
- { ENOTCONN, "Not connected" },
- { ENOTSUP, "Not supported" },
- { EPERM, "Operation not permitted" },
- { ERANGE, "Out of range" },
- { ETIMEDOUT, "Connection timed out" },
+ __einfo_errortab ( EINFO_ENOERR ),
+ __einfo_errortab ( EINFO_EACCES ),
+ __einfo_errortab ( EINFO_ECANCELED ),
+ __einfo_errortab ( EINFO_ECONNRESET ),
+ __einfo_errortab ( EINFO_EINVAL ),
+ __einfo_errortab ( EINFO_EIO ),
+ __einfo_errortab ( EINFO_ENETUNREACH ),
+ __einfo_errortab ( EINFO_ENODEV ),
+ __einfo_errortab ( EINFO_ENOENT ),
+ __einfo_errortab ( EINFO_ENOEXEC ),
+ __einfo_errortab ( EINFO_ENOMEM ),
+ __einfo_errortab ( EINFO_ENOSPC ),
+ __einfo_errortab ( EINFO_ENOTCONN ),
+ __einfo_errortab ( EINFO_ENOTSUP ),
+ __einfo_errortab ( EINFO_EPERM ),
+ __einfo_errortab ( EINFO_ERANGE ),
+ __einfo_errortab ( EINFO_ETIMEDOUT ),
};