diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c index 8d62b0c55835..01aadfe3d7c5 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c @@ -2503,6 +2503,8 @@ BmRegisterBootManagerMenu ( OUT EFI_BOOT_MANAGER_LOAD_OPTION *BootOption ) { + DEBUG ((DEBUG_INFO, "BmRegisterBootManagerMenu\n")); + EFI_STATUS Status; CHAR16 *Description; UINTN DescriptionLength; @@ -2609,6 +2611,8 @@ EfiBootManagerGetBootManagerMenu ( EFI_BOOT_MANAGER_LOAD_OPTION *BootOption ) { + DEBUG ((DEBUG_INFO, "EfiBootManagerGetBootManagerMenu\n")); + EFI_STATUS Status; UINTN BootOptionCount; EFI_BOOT_MANAGER_LOAD_OPTION *BootOptions; @@ -2639,8 +2643,10 @@ EfiBootManagerGetBootManagerMenu ( // Automatically create the Boot#### for Boot Manager Menu when not found. // if (Index == BootOptionCount) { + DEBUG ((DEBUG_INFO, "Menu non trovato, aggiungo\n")); return BmRegisterBootManagerMenu (BootOption); } else { + DEBUG ((DEBUG_INFO, "Menu trovato!\n")); return EFI_SUCCESS; } } diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c b/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c index 90bee73a233e..56a5fef10e57 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c @@ -550,6 +550,8 @@ BmRegisterHotkeyNotify ( UINTN Index; VOID *NotifyHandle; + DEBUG ((DEBUG_INFO, "BmRegisterHotkeyNotify\n")); + for (Index = 0; Index < Hotkey->CodeCount; Index++) { Status = TxtInEx->RegisterKeyNotify ( TxtInEx, @@ -661,6 +663,8 @@ BmProcessKeyOption ( IN EFI_BOOT_MANAGER_KEY_OPTION *KeyOption ) { + DEBUG ((DEBUG_INFO, "BmProcessKeyOption\n")); + EFI_STATUS Status; EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx; EFI_HANDLE *Handles; @@ -976,6 +980,8 @@ EfiBootManagerAddKeyOptionVariable ( ... ) { + DEBUG ((DEBUG_INFO, "Vorrei registrare tasto\n")); + EFI_STATUS Status; VA_LIST Args; VOID *BootOption;