]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Fix debug wrappers for CloseEvent() and CheckEvent()
authorMichael Brown <mcb30@ipxe.org>
Wed, 19 Mar 2025 16:20:27 +0000 (16:20 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 19 Mar 2025 16:20:27 +0000 (16:20 +0000)
The debug wrappers for CloseEvent() and CheckEvent() are currently
both calling SignalEvent() instead (presumably due to copy-paste
errors).  Astonishingly, this has generally not prevented a successful
boot in the (very rare) case that DEBUG=efi_wrap is enabled.

Fix the wrappers to call the intended functions.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_wrap.c

index cbec48a0016ff952f1f27c6bf681e591d74ff541..252bc26246c57ec308946b394a5d77c175ea67b4 100644 (file)
@@ -513,7 +513,7 @@ efi_close_event_wrapper ( EFI_EVENT event ) {
        EFI_STATUS efirc;
 
        DBGC ( colour, "CloseEvent ( %p ) ", event );
-       efirc = bs->SignalEvent ( event );
+       efirc = bs->CloseEvent ( event );
        DBGC ( colour, "= %s -> %p\n", efi_status ( efirc ), retaddr );
        return efirc;
 }
@@ -528,7 +528,7 @@ efi_check_event_wrapper ( EFI_EVENT event ) {
        EFI_STATUS efirc;
 
        DBGCP ( colour, "CheckEvent ( %p ) ", event );
-       efirc = bs->SignalEvent ( event );
+       efirc = bs->CheckEvent ( event );
        DBGCP ( colour, "= %s -> %p\n", efi_status ( efirc ), retaddr );
        return efirc;
 }