diff options
author | Alexander Graf <agraf@suse.de> | 2016-06-02 11:38:27 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-06-06 13:39:16 -0400 |
commit | edcef3ba1d2d5beb92fcd7df253e196e77ba174d (patch) | |
tree | f2ca61e10c1d34979f928dc7b20d0976236e800e /include/efi_loader.h | |
parent | a86aeaf228da739bce6bc40927949efc33672050 (diff) |
efi_loader: Move to normal debug infrastructure
We introduced special "DEBUG_EFI" defines when the efi loader
support was new. After giving it a bit of thought, turns out
we really didn't have to - the normal #define DEBUG infrastructure
works well enough for efi loader as well.
So this patch switches to the common debug() and #define DEBUG
way of printing debug information.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 3332d61cef..97388350eb 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -15,18 +15,10 @@ #include <linux/list.h> -/* #define DEBUG_EFI */ - -#ifdef DEBUG_EFI #define EFI_ENTRY(format, ...) do { \ efi_restore_gd(); \ - printf("EFI: Entry %s(" format ")\n", __func__, ##__VA_ARGS__); \ + debug("EFI: Entry %s(" format ")\n", __func__, ##__VA_ARGS__); \ } while(0) -#else -#define EFI_ENTRY(format, ...) do { \ - efi_restore_gd(); \ - } while(0) -#endif #define EFI_EXIT(ret) efi_exit_func(ret); |