summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-07-24 10:31:52 -0400
committerAlexander Graf <agraf@suse.de>2017-07-25 10:29:46 +0200
commit804b1d737a366604eacd527ef9c5896a8a13b7f5 (patch)
treedbda4a87dc5cd9022c8b4dcdaf39495842d18747 /include/efi_loader.h
parentc0ebfc8664d9b533ce956547abb4377188bf7f07 (diff)
efi_loader: log EFI return values too
Turns out this is rather useful to tracking down where things fail. Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h5
1 files changed, 4 insertions, 1 deletions
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;