| 45 | |
| 46 | |
| 47 | const char* efiStrError(EFI_STATUS Status) |
| 48 | { |
| 49 | size_t size = stdio_static_buf.allocatedSize(); |
| 50 | UINTN n = 0; |
| 51 | n = AsciiSPrint(stdio_static_buf.dataSized(size), size, "%r", Status); |
| 52 | while ( n > size - 2 ) |
| 53 | { |
| 54 | size += 10; |
| 55 | n = AsciiSPrint(stdio_static_buf.dataSized(size), size, "%r", Status); |
| 56 | } |
| 57 | return stdio_static_buf.s(); |
| 58 | } |
| 59 | |
| 60 | //this function print guid in LittleEndian format while we need BigEndian as Apple do |
| 61 | const char* strguid(EFI_GUID* guid) |
no test coverage detected