diff options
| -rw-r--r-- | include/console.h | 2 | ||||
| -rw-r--r-- | lib/console.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 0c4a5137..2a29c2dc 100644 --- a/include/console.h +++ b/include/console.h @@ -122,7 +122,9 @@ extern EFI_STATUS EFIAPI vdprint_(const CHAR16 *fmt, const char *file, int line, 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__) +#ifndef SHIM_UNIT_TEST extern VOID msleep(unsigned long msecs); +#endif /* This is used in various things to determine if we should print to the * console */ diff --git a/lib/console.c b/lib/console.c index 6bbb8a7c..c7ca3bc2 100644 --- a/lib/console.c +++ b/lib/console.c @@ -743,11 +743,13 @@ setup_verbosity(VOID) setup_console(-1); } +#ifndef SHIM_UNIT_TEST VOID msleep(unsigned long msecs) { BS->Stall(msecs); } +#endif /* This is used in various things to determine if we should print to the * console */ |
