From 4ffcfdf4daa82f1f3c28f8fc06b5df1d8becec21 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 5 Apr 2018 13:02:10 -0400 Subject: Get rid of dprinta(), it's useless Signed-off-by: Peter Jones --- include/console.h | 12 ------------ shim.c | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/include/console.h b/include/console.h index 517065cc..c5159d78 100644 --- a/include/console.h +++ b/include/console.h @@ -82,18 +82,6 @@ extern UINT8 verbose; __dprint_ret = console_print((fmt), ##__VA_ARGS__); \ __dprint_ret; \ }) -#define dprinta(fmt, ...) ({ \ - UINTN __dprinta_ret = 0; \ - if (verbose) { \ - UINTN __dprinta_i; \ - CHAR16 *__dprinta_str = AllocateZeroPool((strlena(fmt) + 1) * 2); \ - for (__dprinta_i = 0; fmt[__dprinta_i] != '\0'; __dprinta_i++) \ - __dprinta_str[__dprinta_i] = fmt[__dprinta_i]; \ - __dprinta_ret = console_print((__dprinta_str), ##__VA_ARGS__); \ - FreePool(__dprinta_str); \ - } \ - __dprinta_ret; \ - }) extern EFI_STATUS print_crypto_errors(EFI_STATUS rc, char *file, const char *func, int line); #define crypterr(rc) print_crypto_errors((rc), __FILE__, __func__, __LINE__) diff --git a/shim.c b/shim.c index a99e4b35..0e65da03 100644 --- a/shim.c +++ b/shim.c @@ -2427,7 +2427,7 @@ EFI_STATUS shim_init(void) { setup_verbosity(); - dprinta(shim_version); + dprint(L"%a", shim_version); /* Set the second stage loader */ set_second_stage (global_image_handle); -- cgit v1.2.3