From: Rob Clark Date: Mon, 24 Jul 2017 14:31:52 +0000 (-0400) Subject: efi_loader: log EFI return values too X-Git-Tag: v2017.09-rc1~13^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=804b1d73;p=oweals%2Fu-boot.git efi_loader: log EFI return values too Turns out this is rather useful to tracking down where things fail. Signed-off-by: Rob Clark Signed-off-by: Alexander Graf --- diff --git a/include/efi_loader.h b/include/efi_loader.h index 4bcd35ac77..40f6c89e65 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -20,7 +20,10 @@ debug("EFI: Entry %s(" format ")\n", __func__, ##__VA_ARGS__); \ } while(0) -#define EFI_EXIT(ret) efi_exit_func(ret); +#define EFI_EXIT(ret) ({ \ + debug("EFI: Exit: %s: %u\n", __func__, (u32)((ret) & ~EFI_ERROR_MASK)); \ + efi_exit_func(ret); \ + }) extern struct efi_runtime_services efi_runtime_services; extern struct efi_system_table systab;