[efi] Add efi_strerror()
authorMichael Brown <mcb30@etherboot.org>
Wed, 19 Nov 2008 03:45:44 +0000 (19:45 -0800)
committerMichael Brown <mcb30@etherboot.org>
Wed, 19 Nov 2008 19:22:49 +0000 (19:22 +0000)
commit3f85626fa95cb356a655d3538db6f05231f07003
treee460ab7fbb1525c43bdbab1018a70f57c8d252a7
parentd9b3d0991091b8dd568b17221e335ecf81beb02f
[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/image/efi_image.c
src/include/gpxe/efi/efi.h
src/interface/efi/efi_console.c
src/interface/efi/efi_io.c
src/interface/efi/efi_pci.c
src/interface/efi/efi_snp.c
src/interface/efi/efi_strerror.c [new file with mode: 0644]
src/interface/efi/efi_timer.c
src/interface/efi/efi_umalloc.c