summaryrefslogtreecommitdiff
path: root/fallback.c
diff options
context:
space:
mode:
authorBastien Roucariès <rouca@debian.org>2024-05-06 19:17:23 +0000
committerBastien Roucariès <rouca@debian.org>2024-05-06 19:17:23 +0000
commit0d1d760b90dfe26145b7c4e4cd0de55117bcdbbb (patch)
treea66ff512cd9be70de19d8983a2a04b9a1d03da6b /fallback.c
parentee3097c3f96727fdb41e36d93b6c957d281da97e (diff)
parenta075e58606b9affb6dfb176c71caab816737a981 (diff)
downloadefi-boot-shim-0d1d760b90dfe26145b7c4e4cd0de55117bcdbbb.tar.gz
efi-boot-shim-0d1d760b90dfe26145b7c4e4cd0de55117bcdbbb.zip
Merge tag 'upstream/15.8' into buster/updates
Upstream version 15.8
Diffstat (limited to 'fallback.c')
-rw-r--r--fallback.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fallback.c b/fallback.c
index da4b25cc..600cc7aa 100644
--- a/fallback.c
+++ b/fallback.c
@@ -1006,14 +1006,14 @@ try_start_first_option(EFI_HANDLE parent_image_handle)
EFI_HANDLE image_handle;
if (get_fallback_verbose()) {
- int fallback_verbose_wait = 500000; /* default to 0.5s */
+ unsigned long fallback_verbose_wait = 500000; /* default to 0.5s */
#ifdef FALLBACK_VERBOSE_WAIT
fallback_verbose_wait = FALLBACK_VERBOSE_WAIT;
#endif
console_print(L"Verbose enabled, sleeping for %d mseconds... "
L"Press the Pause key now to hold for longer.\n",
fallback_verbose_wait);
- msleep(fallback_verbose_wait);
+ usleep(fallback_verbose_wait);
}
if (!first_new_option) {
@@ -1036,7 +1036,7 @@ try_start_first_option(EFI_HANDLE parent_image_handle)
}
console_print(L"\n");
- msleep(500000000);
+ usleep(500000000);
return efi_status;
}
@@ -1051,7 +1051,7 @@ try_start_first_option(EFI_HANDLE parent_image_handle)
efi_status = BS->StartImage(image_handle, NULL, NULL);
if (EFI_ERROR(efi_status)) {
console_print(L"StartImage failed: %r\n", efi_status);
- msleep(500000000);
+ usleep(500000000);
}
return efi_status;
}
@@ -1211,14 +1211,14 @@ reset:
console_print(L"Reset System\n");
if (get_fallback_verbose()) {
- int fallback_verbose_wait = 500000; /* default to 0.5s */
+ unsigned long fallback_verbose_wait = 500000; /* default to 0.5s */
#ifdef FALLBACK_VERBOSE_WAIT
fallback_verbose_wait = FALLBACK_VERBOSE_WAIT;
#endif
console_print(L"Verbose enabled, sleeping for %d mseconds... "
L"Press the Pause key now to hold for longer.\n",
fallback_verbose_wait);
- msleep(fallback_verbose_wait);
+ usleep(fallback_verbose_wait);
}
RT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);