VirtualBox

Changeset 77672 in vbox


Ignore:
Timestamp:
Mar 13, 2019 8:25:50 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129308
Message:

EFI: Zapped unimplemented/unnecessary debugging code.

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c

    r77662 r77672  
    217217  VBoxLogFlowFuncEnter();
    218218  VBoxLogFlowFuncMarkVar(ConVarName, "%s");
    219   VBoxLogFlowFuncMarkDP(CustomizedConDevicePath);
    220   VBoxLogFlowFuncMarkDP(ExclusiveDevicePath);
    221219  VarConsole      = NULL;
    222220  DevicePathSize  = 0;
  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/Apple.c

    r77669 r77672  
    108108  EFI_PARTITION_INFO_PROTOCOL  PartitionInfo;
    109109
    110   VBoxLogFlowFuncMarkDP(DevicePath);
     110  VBoxLogFlowFuncEnter();
    111111  Found         = EFI_NOT_FOUND;
    112112  Media         = BlockIo->Media;
  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c

    r77662 r77672  
    6363  EFI_PARTITION_INFO_PROTOCOL  PartitionInfo;
    6464
    65 #ifdef VBOX
    66   VBoxLogFlowFuncMarkDP(DevicePath);
    67 #endif
    6865  Found         = EFI_NOT_FOUND;
    6966  Media         = BlockIo->Media;
  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c

    r77662 r77672  
    221221  EFI_PARTITION_INFO_PROTOCOL  PartitionInfo;
    222222
    223 #ifdef VBOX
    224   VBoxLogFlowFuncMarkDP(DevicePath);
    225 #endif
    226223  ProtectiveMbr = NULL;
    227224  PrimaryHeader = NULL;
  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c

    r77669 r77672  
    150150  LastBlock = BlockIo->Media->LastBlock;
    151151
    152 #ifdef VBOX
    153   VBoxLogFlowFuncMarkDP(DevicePath);
    154 #endif
    155152  Mbr = AllocatePool (BlockSize);
    156153  if (Mbr == NULL) {
     
    232229      ZeroMem (&PartitionInfo, sizeof (EFI_PARTITION_INFO_PROTOCOL));
    233230      PartitionInfo.Revision = EFI_PARTITION_INFO_PROTOCOL_REVISION;
    234       PartitionInfo.Type     = PARTITION_TYPE_OTHER;
     231      PartitionInfo.Type     = PARTITION_TYPE_MBR;
     232      if (Mbr->Partition[Index].OSIndicator == EFI_PARTITION) {
     233        PartitionInfo.System = 1;
     234      }
     235      CopyMem (&PartitionInfo.Info.Mbr, &Mbr->Partition[Index], sizeof (MBR_PARTITION_RECORD));
    235236
    236237      Status = PartitionInstallChildHandle (
  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c

    r77662 r77672  
    9191    // if yes, go on checking other conditions
    9292    //
    93 #ifdef VBOX
    94     VBoxLogFlowFuncMarkDP(RemainingDevicePath);
    95 #endif
    9693    if (!IsDevicePathEnd (RemainingDevicePath)) {
    9794      //
     
    164161                  );
    165162  if (Status == EFI_ALREADY_STARTED) {
    166 #ifdef VBOX
    167     VBoxLogFlowFuncMarkDP(ParentDevicePath);
    168 #endif
    169163    return EFI_SUCCESS;
    170164  }
  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Library/DebugLib.h

    r77662 r77672  
    528528
    529529#if defined(VBOX)
    530 # ifdef __EFI_DEVICE_PATH_PROTOCOL_H__
    531 CHAR16 *VBoxDebugDevicePath2Str(IN EFI_DEVICE_PATH_PROTOCOL *pDevicePath);
    532 CHAR16 *VBoxDebugHandleDevicePath2Str(IN EFI_HANDLE hHandle);
    533 # endif
    534530VOID EFIAPI VBoxLogWorker(const char *pszFormat, ...);
    535531
     
    554550        VBoxLog(("%a:" VBOX_XSTR(__LINE__) ": " #rc "=0x%x (%r)\n", __FUNCTION__, rcLog, rcLog)); \
    555551    } while (0)
    556 #  define VBoxLogFlowFuncMarkDP(dp) \
    557     VBoxLog(("%a:" VBOX_XSTR(__LINE__) ": " #dp "=%s\n", __FUNCTION__, VBoxDebugDevicePath2Str(dp)))
    558 #  define VBoxLogFlowFuncMarkHandleDP(dp)\
    559     VBoxLog(("%a:" VBOX_XSTR(__LINE__) ": " #dp "=%s\n", __FUNCTION__, VBoxDebugHandleDevicePath2Str(dp)))
    560552#  define VBoxLog(a)                            VBoxLogWorker a
    561553# else  /* !EFI_LOG_ENABLED */
     
    566558#  define VBoxLogFlowFuncMarkVar(var, varfmt)   do {} while (0)
    567559#  define VBoxLogFlowFuncMarkRC(rc)             do {} while (0)
    568 #  define VBoxLogFlowFuncMarkDP(dp)             do {} while (0)
    569 #  define VBoxLogLogFlowFuncMarkHandleDP(dp)    do {} while (0)
    570560#  define VBoxLog(a)                            do {} while (0)
    571561# endif /* !EFI_LOG_ENABLED */
  • trunk/src/VBox/Devices/EFI/FirmwareNew/VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.c

    r76553 r77672  
    4242#include "iprt/asm.h"
    4343
    44 #if 0
    45 static EFI_DEVICE_PATH_TO_TEXT_PROTOCOL *g_DevPath2Txt;
    46 #endif
    47 
    4844
    4945VOID EFIAPI
     
    168164    VBoxPanicMsgString("\nLine:  ");
    169165    VBoxPanicMsgDecimalU32((uint32_t)LineNumber);
    170     VBoxPanicMsgString("\nEDescription: ");
     166    VBoxPanicMsgString("\nDescription: ");
    171167    VBoxPanicMsgString(Description ? Description : "<NULL>");
    172168    ASMOutU8(EFI_PANIC_PORT, EFI_PANIC_CMD_END_MSG);
     
    175171}
    176172
    177 CHAR16 *VBoxDebugDevicePath2Str(IN EFI_DEVICE_PATH_PROTOCOL  *pDevicePath)
    178 {
    179 #if 0
    180     EFI_STATUS rc;
    181     if (!g_DevPath2Txt)
    182     {
    183         rc = gBS->LocateProtocol(&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&g_DevPath2Txt);
    184         if (EFI_ERROR(rc))
    185         {
    186             DEBUG((DEBUG_INFO, "gEfiDevicePathToTextProtocolGuid:%g isn't instantied\n", gEfiDevicePathToTextProtocolGuid));
    187             return NULL;
    188         }
    189     }
    190     return g_DevPath2Txt->ConvertDevicePathToText(pDevicePath, TRUE, FALSE);
    191 #else
    192     return NULL;
    193 #endif
    194 }
    195 
    196 CHAR16 *VBoxDebugHandleDevicePath2Str(IN EFI_HANDLE hHandle)
    197 {
    198 #if 0
    199     EFI_STATUS rc;
    200     EFI_DEVICE_PATH_PROTOCOL *pDevicePath = NULL;
    201     CHAR16 *psz16TxtDevicePath;
    202     rc = gBS->OpenProtocol(hHandle,
    203                            &gEfiDevicePathProtocolGuid,
    204                            (VOID **)pDevicePath,
    205                            NULL,
    206                            hHandle,
    207                            EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL);
    208     if (EFI_ERROR(rc))
    209     {
    210         DEBUG((DEBUG_INFO, "%a:%d failed(%r) to open Device Path Protocol for Handle %p\n",
    211                 __FUNCTION__,
    212                 __LINE__,
    213                 rc,
    214                 hHandle));
    215         return NULL;
    216     }
    217     psz16TxtDevicePath = VBoxDebugHandleDevicePath2Str(pDevicePath);
    218     return psz16TxtDevicePath;
    219 #else
    220     return NULL;
    221 #endif
    222 }
    223 CHAR16 *VBoxDebugPrintDevicePath(IN EFI_DEVICE_PATH_PROTOCOL  *pDevicePath)
    224 {
    225 #if 0
    226     EFI_STATUS rc;
    227     if (!g_DevPath2Txt)
    228     {
    229         rc = gBS->LocateProtocol(&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&g_DevPath2Txt);
    230         if (EFI_ERROR(rc))
    231         {
    232             DEBUG((DEBUG_INFO, "gEfiDevicePathToTextProtocolGuid:%g isn't instantied\n", gEfiDevicePathToTextProtocolGuid));
    233             return NULL;
    234         }
    235     }
    236     return g_DevPath2Txt->ConvertDevicePathToText(pDevicePath, TRUE, FALSE);
    237 #else
    238     return NULL;
    239 #endif
    240 }
    241 
    242173
    243174VOID * EFIAPI
  • trunk/src/VBox/Devices/EFI/FirmwareNew/VBoxPkg/VBoxFsDxe/fsw_efi.c

    r76553 r77672  
    231231    // first, open DiskIO
    232232    VBoxLogFlowFuncEnter();
    233     VBoxLogFlowFuncMarkDP(RemainingDevicePath);
    234233
    235234    Status = BS->OpenProtocol(ControllerHandle,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette