Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Library/DebugLib.h
- Timestamp:
- Oct 28, 2015 8:17:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
-
Property svn:mergeinfo
set to (toggle deleted branches)
/vendor/edk2/current 103735-103757
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Library/DebugLib.h
r48751 r58459 9 9 defined, then debug and assert related macros wrapped by it are the NULL implementations. 10 10 11 Copyright (c) 2006 - 201 2, Intel Corporation. All rights reserved.<BR>11 Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> 12 12 This program and the accompanying materials are licensed and made available under 13 13 the terms and conditions of the BSD License that accompanies this distribution. … … 221 221 ); 222 222 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 **/ 232 BOOLEAN 233 EFIAPI 234 DebugPrintLevelEnabled ( 235 IN CONST UINTN ErrorLevel 236 ); 237 238 /** 225 239 Internal worker macro that calls DebugAssert(). 226 240 … … 239 253 This macro calls DebugPrint() passing in the debug error level, a format 240 254 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. 241 257 242 258 @param Expression Expression containing an error level, a format string, … … 244 260 245 261 **/ 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 246 272 #define _DEBUG(Expression) DebugPrint Expression 247 273 #endif 248 274 249 275 /**
Note:
See TracChangeset
for help on using the changeset viewer.