From 3f85626fa95cb356a655d3538db6f05231f07003 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 18 Nov 2008 19:45:44 -0800 Subject: [efi] Add efi_strerror() EFI_STATUS is defined as an INTN, which maps to UINT32 (i.e. unsigned int) on i386 and UINT64 (i.e. unsigned long) on x86_64. This would require a cast each time the error status is printed. Add efi_strerror() to avoid this ickiness and simultaneously enable prettier reporting of EFI status codes. --- src/include/gpxe/efi/efi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/gpxe/efi/efi.h b/src/include/gpxe/efi/efi.h index cd35f68ad..8c9f789a6 100644 --- a/src/include/gpxe/efi/efi.h +++ b/src/include/gpxe/efi/efi.h @@ -90,4 +90,6 @@ struct efi_protocol { extern EFI_HANDLE efi_image_handle; extern EFI_SYSTEM_TABLE *efi_systab; +extern const char * efi_strerror ( EFI_STATUS efirc ); + #endif /* _EFI_H */ -- cgit v1.2.3-55-g7522