mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
a86aeaf228
commit
edcef3ba1d
6 changed files with 10 additions and 37 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue