Browse Source

Allow construction of PXE status code from internal error number.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
6b6fc1d5ea
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/include/errno.h

+ 3
- 0
src/include/errno.h View File

@@ -51,6 +51,9 @@
51 51
  *
52 52
  */
53 53
 
54
+/** Derive PXENV_STATUS code from gPXE error number */
55
+#define PXENV_STATUS( rc ) ( (-(rc)) & 0x00ff )
56
+
54 57
 /**
55 58
  * @defgroup pxeerrors PXE error codes
56 59
  *

Loading…
Cancel
Save