mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
[efi] Fix debug wrappers for CloseEvent() and CheckEvent()
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user