X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FDxeDebugLibSerialPort%2FDebugLib.c;h=b98761a9e52e54c17ce9fd70fbcde242768e6fcb;hb=a475bfa2257644cef606811e2d2e50cb8e08405e;hp=0f3c39096526d7190a0c9f4ee01bc7ba1f09a416;hpb=7bc232b2072cac6adf3f6d1ad0c09bbb506422bb;p=mirror_edk2.git diff --git a/MdePkg/Library/DxeDebugLibSerialPort/DebugLib.c b/MdePkg/Library/DxeDebugLibSerialPort/DebugLib.c index 0f3c390965..b98761a9e5 100644 --- a/MdePkg/Library/DxeDebugLibSerialPort/DebugLib.c +++ b/MdePkg/Library/DxeDebugLibSerialPort/DebugLib.c @@ -1,7 +1,8 @@ /** @file - UEFI Debug Library that uses PrintLib to send messages to CONOUT. + Base Debug library instance base on Serial Port library. + It uses PrintLib to send debug messages to serial port device. - Copyright (c) 2006, Intel Corporation
+ Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -12,10 +13,14 @@ **/ -// -// Include common header file for this module. -// -#include "CommonHeader.h" +#include +#include +#include +#include +#include +#include +#include + // // Define the maximum debug and assert message length that this library supports @@ -35,6 +40,7 @@ @param ErrorLevel The error level of the debug message. @param Format Format string for the debug message to print. + @param ... The variable argument list. **/ VOID @@ -139,10 +145,10 @@ DebugAssert ( If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). - @param Buffer Pointer to the target buffer to fill with PcdDebugClearMemoryValue. + @param Buffer Pointer to the target buffer to be filled with PcdDebugClearMemoryValue. @param Length Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. - @return Buffer + @return Buffer Pointer to the target buffer filled with PcdDebugClearMemoryValue. **/ VOID * @@ -231,11 +237,11 @@ DebugCodeEnabled ( Returns TRUE if DEBUG_CLEAR_MEMORY()macro is enabled. - This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CLEAR_MEMORY_ENABLED bit of + This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is set. Otherwise FALSE is returned. - @retval TRUE The DEBUG_PROPERTY_DEBUG_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is set. - @retval FALSE The DEBUG_PROPERTY_DEBUG_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is clear. + @retval TRUE The DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is set. + @retval FALSE The DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is clear. **/ BOOLEAN