diff options
| author | Oliver Smith-Denny <osde@microsoft.com> | 2026-10-01 22:38:03 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-10-23 06:44:49 +0300 |
| commit | bbbb761e370379aed5d548cd5c044377fee4daaa (patch) | |
| tree | 56d02029be2c2ede0bfb743a9ebf5572d22e6f14 /MdeModulePkg/Core/PiSmmCore | |
| parent | 2b2c8374f91a9622b0d49ce7d90ce2bab10c9c6e (diff) | |
| download | edk2-bbbb761e370379aed5d548cd5c044377fee4daaa.tar.xz | |
MdeModulePkg: Use DUMP_HEX Macro
Several places in MdeModulePkg were implementing their
own versions of hex dumping logic; use the DebugLib.h
macro instead.
Prints change slightly, they are now standardized with
uppercase hex, prefixes on every row instead of in the
header only, and VarCheckHiiLib no longer indents rows
with *ASCII*.
Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
Diffstat (limited to 'MdeModulePkg/Core/PiSmmCore')
| -rw-r--r-- | MdeModulePkg/Core/PiSmmCore/SmiHandlerProfile.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/MdeModulePkg/Core/PiSmmCore/SmiHandlerProfile.c b/MdeModulePkg/Core/PiSmmCore/SmiHandlerProfile.c index f202e7d679..dd85621260 100644 --- a/MdeModulePkg/Core/PiSmmCore/SmiHandlerProfile.c +++ b/MdeModulePkg/Core/PiSmmCore/SmiHandlerProfile.c @@ -113,25 +113,6 @@ GLOBAL_REMOVE_IF_UNREFERENCED SMI_HANDLER_PROFILE_PROTOCOL mSmiHandlerProfile = };
/**
- This function dump raw data.
-
- @param Data raw data
- @param Size raw data size
-**/
-VOID
-InternalDumpData (
- IN UINT8 *Data,
- IN UINTN Size
- )
-{
- UINTN Index;
-
- for (Index = 0; Index < Size; Index++) {
- DEBUG ((DEBUG_INFO, "%02x ", (UINTN)Data[Index]));
- }
-}
-
-/**
Get GUID name for an image.
@param[in] LoadedImage LoadedImage protocol.
@@ -403,9 +384,7 @@ DumpSmiChildContext ( FreePool (Str);
}
} else {
- DEBUG ((DEBUG_INFO, " Context - "));
- InternalDumpData (Context, ContextSize);
- DEBUG ((DEBUG_INFO, "\n"));
+ DUMP_HEX (DEBUG_INFO, 0, Context, ContextSize, " Context - ");
}
}
|
