]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Show image address range in veto debug messages
authorMichael Brown <mcb30@ipxe.org>
Thu, 20 Mar 2025 14:30:34 +0000 (14:30 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 20 Mar 2025 14:30:34 +0000 (14:30 +0000)
When hunting down a misbehaving OEM driver to add it to the veto list,
it can be very useful to know the address ranges used by each driver.
Add this information to the verbose debug messages.

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

index 37aa9a379d6f0dfe0293b8a0c2151cb6b8d440ef..1b23320418e1a72a5a5678b068bc7ed61bd671ee 100644 (file)
@@ -569,9 +569,6 @@ static int efi_veto_find ( EFI_HANDLE driver, const char *manufacturer,
        EFI_STATUS efirc;
        int rc;
 
-       DBGC2 ( &efi_vetoes, "EFIVETO checking %s\n",
-               efi_handle_name ( driver ) );
-
        /* Mark as not vetoed */
        memset ( veto, 0, sizeof ( *veto ) );
 
@@ -621,6 +618,9 @@ static int efi_veto_find ( EFI_HANDLE driver, const char *manufacturer,
        }
 
        /* Check vetoes */
+       DBGC2 ( &efi_vetoes, "EFIVETO checking %s [%p,%p)\n",
+               efi_handle_name ( driver ), loaded.loaded->ImageBase,
+               ( loaded.loaded->ImageBase + loaded.loaded->ImageSize ) );
        for ( i = 0 ; i < ( sizeof ( efi_vetoes ) /
                            sizeof ( efi_vetoes[0] ) ) ; i++ ) {
                if ( efi_vetoes[i].veto ( binding.binding, loaded.loaded,