Changeset 58466 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/UefiDebugLibConOut
- Timestamp:
- Oct 29, 2015 4:30:44 AM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
- Property svn:mergeinfo changed
/vendor/edk2/current merged: 103769-103776
- Property svn:mergeinfo changed
-
trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/UefiDebugLibConOut/DebugLib.c
r58459 r58466 3 3 4 4 Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php. 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php. 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 12 12 13 13 **/ … … 24 24 25 25 // 26 // Define the maximum debug and assert message length that this library supports 26 // Define the maximum debug and assert message length that this library supports 27 27 // 28 28 #define MAX_DEBUG_MESSAGE_LENGTH 0x100 … … 31 31 Prints a debug message to the debug output device if the specified error level is enabled. 32 32 33 If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function 34 GetDebugPrintErrorLevel (), then print the message specified by Format and the 33 If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function 34 GetDebugPrintErrorLevel (), then print the message specified by Format and the 35 35 associated variable argument list to the debug output device. 36 36 … … 39 39 @param ErrorLevel The error level of the debug message. 40 40 @param Format Format string for the debug message to print. 41 @param ... A variable argument list whose contents are accessed 41 @param ... A variable argument list whose contents are accessed 42 42 based on the format string specified by Format. 43 43 … … 84 84 85 85 /** 86 Prints an assert message containing a filename, line number, and description. 86 Prints an assert message containing a filename, line number, and description. 87 87 This may be followed by a breakpoint or a dead loop. 88 88 89 89 Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n" 90 to the debug output device. If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of 91 PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if 92 DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then 93 CpuDeadLoop() is called. If neither of these bits are set, then this function 90 to the debug output device. If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of 91 PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if 92 DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then 93 CpuDeadLoop() is called. If neither of these bits are set, then this function 94 94 returns immediately after the message is printed to the debug output device. 95 95 DebugAssert() must actively prevent recursion. If DebugAssert() is called while … … 99 99 If Description is NULL, then a <Description> string of "(NULL) Description" is printed. 100 100 101 @param FileName The pointer to the name of the source file that generated 101 @param FileName The pointer to the name of the source file that generated 102 102 the assert condition. 103 @param LineNumber The line number in the source file that generated the 103 @param LineNumber The line number in the source file that generated the 104 104 assert condition 105 105 @param Description The pointer to the description of the assert condition. … … 120 120 // 121 121 UnicodeSPrintAsciiFormat ( 122 Buffer, 123 sizeof (Buffer), 124 "ASSERT %a(%d): %a\n", 125 FileName, 126 LineNumber, 122 Buffer, 123 sizeof (Buffer), 124 "ASSERT %a(%d): %a\n", 125 FileName, 126 LineNumber, 127 127 Description 128 128 ); 129 129 130 130 // 131 131 // Send the print string to the Console Output device … … 149 149 Fills a target buffer with PcdDebugClearMemoryValue, and returns the target buffer. 150 150 151 This function fills Length bytes of Buffer with the value specified by 151 This function fills Length bytes of Buffer with the value specified by 152 152 PcdDebugClearMemoryValue, and returns Buffer. 153 153 154 154 If Buffer is NULL, then ASSERT(). 155 If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). 155 If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). 156 156 157 157 @param Buffer The pointer to the target buffer to be filled with PcdDebugClearMemoryValue. 158 @param Length The number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. 158 @param Length The number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. 159 159 160 160 @return Buffer The pointer to the target buffer filled with PcdDebugClearMemoryValue. … … 183 183 Returns TRUE if ASSERT() macros are enabled. 184 184 185 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of 185 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of 186 186 PcdDebugProperyMask is set. Otherwise FALSE is returned. 187 187 … … 200 200 201 201 202 /** 202 /** 203 203 Returns TRUE if DEBUG() macros are enabled. 204 204 205 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of 205 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of 206 206 PcdDebugProperyMask is set. Otherwise FALSE is returned. 207 207 … … 220 220 221 221 222 /** 222 /** 223 223 Returns TRUE if DEBUG_CODE() macros are enabled. 224 224 225 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of 225 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of 226 226 PcdDebugProperyMask is set. Otherwise FALSE is returned. 227 227 … … 240 240 241 241 242 /** 242 /** 243 243 Returns TRUE if DEBUG_CLEAR_MEMORY() macro is enabled. 244 244 245 This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of 245 This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of 246 246 PcdDebugProperyMask is set. Otherwise FALSE is returned. 247 247 -
trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
r58459 r58466 23 23 MODULE_TYPE = UEFI_DRIVER 24 24 VERSION_STRING = 1.0 25 LIBRARY_CLASS = DebugLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER 25 LIBRARY_CLASS = DebugLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER 26 26 27 27
Note:
See TracChangeset
for help on using the changeset viewer.