From bb4e8820c17c70d1cd10612c02a5cc726e3c8f06 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Tue, 17 Jan 2023 15:51:42 +0100 Subject: [PATCH] boot: Fix missed argument to Print() This fixes 3e87a057a796b57bf9540b948823fbefef6693d7, which passed the path to the wrong Print() call. Miraculously, this was printing the correct path during testing and was therefore missed. --- src/boot/efi/secure-boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/efi/secure-boot.c b/src/boot/efi/secure-boot.c index 3f3a222b5e..571c3c3612 100644 --- a/src/boot/efi/secure-boot.c +++ b/src/boot/efi/secure-boot.c @@ -44,12 +44,12 @@ EFI_STATUS secure_boot_enroll_at(EFI_FILE *root_dir, const char16_t *path) { clear_screen(COLOR_NORMAL); - Print(u"Enrolling secure boot keys from directory: %s\n"); + Print(u"Enrolling secure boot keys from directory: %s\n", path); /* Enrolling secure boot keys is safe to do in virtualized environments as there is nothing * we can brick there. */ if (!in_hypervisor()) { - Print(u"Warning: Enrolling custom Secure Boot keys might soft-brick your machine!\n", path); + Print(u"Warning: Enrolling custom Secure Boot keys might soft-brick your machine!\n"); unsigned timeout_sec = 15; for (;;) {