#include <stdio.h>
#include <gpxe/efi/efi.h>
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| const char * | efi_strerror (EFI_STATUS efirc) |
| Format EFI status code. | |
Definition in file efi_strerror.c.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| const char* efi_strerror | ( | EFI_STATUS | efirc | ) |
Format EFI status code.
| efirc | EFI status code | |
| efi_strerror | EFI status code string |
Definition at line 36 of file efi_strerror.c.
References MAX_BIT, and snprintf().
Referenced by efi_currticks(), efi_getchar(), efi_image_exec(), efi_image_load(), efi_ioread(), efi_ioreads(), efi_iowrite(), efi_iowrites(), efi_snp_driver_start(), efi_snp_install(), efi_snp_netdev(), efi_snp_snpdev(), efi_udelay(), efi_urealloc(), efipci_read(), and efipci_write().
00036 { 00037 static char errbuf[32]; 00038 00039 if ( ! efirc ) 00040 return "No error"; 00041 00042 snprintf ( errbuf, sizeof ( errbuf ), "Error %lld", 00043 ( unsigned long long ) ( efirc ^ MAX_BIT ) ); 00044 return errbuf; 00045 }
1.5.7.1