VirtualBox

Ignore:
Timestamp:
Oct 28, 2015 8:17:18 PM (9 years ago)
Author:
vboxsync
Message:

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware

  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Library/DebugLib.h

    r48751 r58459  
    99  defined, then debug and assert related macros wrapped by it are the NULL implementations.
    1010
    11 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
     11Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
    1212This program and the accompanying materials are licensed and made available under
    1313the terms and conditions of the BSD License that accompanies this distribution.
     
    221221  );
    222222
    223 
    224 /**
     223/**
     224  Returns TRUE if any one of the bit is set both in ErrorLevel and PcdFixedDebugPrintErrorLevel.
     225
     226  This function compares the bit mask of ErrorLevel and PcdFixedDebugPrintErrorLevel.
     227
     228  @retval  TRUE    Current ErrorLevel is supported.
     229  @retval  FALSE   Current ErrorLevel is not supported.
     230
     231**/
     232BOOLEAN
     233EFIAPI
     234DebugPrintLevelEnabled (
     235  IN  CONST UINTN        ErrorLevel
     236  );
     237
     238/** 
    225239  Internal worker macro that calls DebugAssert().
    226240
     
    239253  This macro calls DebugPrint() passing in the debug error level, a format
    240254  string, and a variable argument list.
     255  __VA_ARGS__ is not supported by ECB compiler, Microsoft Visual Studio .NET 2003
     256  and Microsoft Windows Server 2003 Driver Development Kit (Microsoft WINDDK) version 3790.1830.
    241257
    242258  @param  Expression  Expression containing an error level, a format string,
     
    244260
    245261**/
     262
     263#if !defined(MDE_CPU_EBC) && (!defined (_MSC_VER) || _MSC_VER >= 1400)
     264  #define _DEBUG_PRINT(PrintLevel, ...)              \
     265    do {                                             \
     266      if (DebugPrintLevelEnabled (PrintLevel)) {     \
     267        DebugPrint (PrintLevel, ##__VA_ARGS__);      \
     268      }                                              \
     269    } while (FALSE)
     270  #define _DEBUG(Expression)   _DEBUG_PRINT Expression
     271#else
    246272#define _DEBUG(Expression)   DebugPrint Expression
    247 
     273#endif
    248274
    249275/**
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