diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-12 05:26:13 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-12 05:26:13 +0000 |
commit | 513b53b1396b7dd668d1499eaa6032a5c6309096 (patch) | |
tree | fabeedc2fcbd9de8ce448caf9d664ec00a9c9258 /MdePkg/Library/BaseDebugLibNull | |
parent | 86f3fef093a21e9174e3e89691daa106b9eefea7 (diff) | |
download | edk2-platforms-513b53b1396b7dd668d1499eaa6032a5c6309096.tar.xz |
Update BaseDebugLibNull to not touch any global variables or PCD settings
Update BasePeCoffLib to include work around for Itanium ELILO images that do not follow the PE/COFF spec
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2083 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseDebugLibNull')
-rw-r--r-- | MdePkg/Library/BaseDebugLibNull/DebugLib.c | 52 |
1 files changed, 5 insertions, 47 deletions
diff --git a/MdePkg/Library/BaseDebugLibNull/DebugLib.c b/MdePkg/Library/BaseDebugLibNull/DebugLib.c index eeaf7859d3..c14944b7be 100644 --- a/MdePkg/Library/BaseDebugLibNull/DebugLib.c +++ b/MdePkg/Library/BaseDebugLibNull/DebugLib.c @@ -12,11 +12,6 @@ **/
-//
-// Define the maximum debug and assert message length that this library supports
-//
-#define MAX_DEBUG_MESSAGE_LENGTH 0x100
-
/**
Prints a debug message to the debug output device if the specified error level is enabled.
@@ -39,20 +34,6 @@ DebugPrint ( ...
)
{
- CHAR8 Buffer[MAX_DEBUG_MESSAGE_LENGTH];
- VA_LIST Marker;
-
- //
- // If Format is NULL, then ASSERT().
- //
- ASSERT (Format != NULL);
-
- //
- // Print the assert message to a buffer
- //
- VA_START (Marker, Format);
- AsciiVSPrint (Buffer, sizeof (Buffer), Format, Marker);
- VA_END (Marker);
}
@@ -87,21 +68,6 @@ DebugAssert ( IN CONST CHAR8 *Description
)
{
- CHAR8 Buffer[MAX_DEBUG_MESSAGE_LENGTH];
-
- //
- // Print the assert message to a buffer
- //
- AsciiSPrint (Buffer, sizeof (Buffer), "ASSERT %s(%d): %s\n", FileName, LineNumber, Description);
-
- //
- // Generate a Breakpoint, DeadLoop, or NOP based on PCD settings
- //
- if ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED) != 0) {
- CpuBreakpoint ();
- } else if ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED) != 0) {
- CpuDeadLoop ();
- }
}
@@ -129,15 +95,7 @@ DebugClearMemory ( IN UINTN Length
)
{
- //
- // If Buffer is NULL, then ASSERT().
- //
- ASSERT (Buffer != NULL);
-
- //
- // SetMem() checks for the the ASSERT() condition on Length and returns Buffer
- //
- return SetMem (Buffer, Length, PcdGet8(PcdDebugClearMemoryValue));
+ return Buffer;
}
@@ -158,7 +116,7 @@ DebugAssertEnabled ( VOID
)
{
- return ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED) != 0);
+ return FALSE;
}
@@ -179,7 +137,7 @@ DebugPrintEnabled ( VOID
)
{
- return ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_DEBUG_PRINT_ENABLED) != 0);
+ return FALSE;
}
@@ -200,7 +158,7 @@ DebugCodeEnabled ( VOID
)
{
- return ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_DEBUG_CODE_ENABLED) != 0);
+ return FALSE;
}
@@ -221,5 +179,5 @@ DebugClearMemoryEnabled ( VOID
)
{
- return ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED) != 0);
+ return FALSE;
}
|