diff options
| author | Peter Jones <pjones@redhat.com> | 2017-11-02 18:05:12 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2017-12-19 16:52:01 -0500 |
| commit | 97a3f6cf94365141b98363d29a88865f6876e5a6 (patch) | |
| tree | 6d1085aa05db0517ec9040ee33a40388adf348e0 | |
| parent | b9e81483bb96b1fb471a981dff625807eb0a58ca (diff) | |
| download | efi-boot-shim-97a3f6cf94365141b98363d29a88865f6876e5a6.tar.gz efi-boot-shim-97a3f6cf94365141b98363d29a88865f6876e5a6.zip | |
"in_protocol" is used in more than shim.o; make it not static.
Signed-off-by: Peter Jones <pjones@redhat.com>
| -rw-r--r-- | httpboot.c | 2 | ||||
| -rw-r--r-- | include/console.h | 4 | ||||
| -rw-r--r-- | lib/console.c | 4 | ||||
| -rw-r--r-- | shim.c | 1 | ||||
| -rw-r--r-- | tpm.c | 3 |
5 files changed, 9 insertions, 5 deletions
@@ -38,8 +38,6 @@ #include "Ip4Config2.h" #include "Ip6Config.h" -extern UINT8 in_protocol; - #define perror(fmt, ...) ({ \ UINTN __perror_ret = 0; \ if (!in_protocol) \ diff --git a/include/console.h b/include/console.h index e9cf2858..6481a3d3 100644 --- a/include/console.h +++ b/include/console.h @@ -93,4 +93,8 @@ extern EFI_STATUS print_crypto_errors(EFI_STATUS rc, char *file, const char *fun extern VOID msleep(unsigned long msecs); +/* This is used in various things to determine if we should print to the + * console */ +extern UINT8 in_protocol; + #endif /* _SHIM_LIB_CONSOLE_H */ diff --git a/lib/console.c b/lib/console.c index cd8d1de2..0f50851b 100644 --- a/lib/console.c +++ b/lib/console.c @@ -489,3 +489,7 @@ msleep(unsigned long msecs) { uefi_call_wrapper(BS->Stall, 1, msecs); } + +/* This is used in various things to determine if we should print to the + * console */ +UINT8 in_protocol = 0; @@ -62,7 +62,6 @@ static EFI_STATUS (EFIAPI *entry_point) (EFI_HANDLE image_handle, EFI_SYSTEM_TAB static CHAR16 *second_stage; static void *load_options; static UINT32 load_options_size; -static UINT8 in_protocol; #define perror(fmt, ...) ({ \ UINTN __perror_ret = 0; \ @@ -4,8 +4,7 @@ #include <stdint.h> #include "tpm.h" - -extern UINT8 in_protocol; +#include "console.h" #define perror(fmt, ...) ({ \ UINTN __perror_ret = 0; \ |
