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/Bus | |
| 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/Bus')
| -rw-r--r-- | MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.c | 28 | ||||
| -rw-r--r-- | MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.h | 13 |
2 files changed, 1 insertions, 40 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.c b/MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.c index 79888bf3a5..23e49f922f 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.c @@ -188,33 +188,7 @@ EhcDumpQh ( EhcDumpQtd (Qtd, NULL);
if (DumpBuf && (Qtd->DataLen != 0)) {
- EhcDumpBuf (Qtd->Data, Qtd->DataLen);
+ DUMP_HEX (DEBUG_VERBOSE, 0, Qtd->Data, Qtd->DataLen, "");
}
}
}
-
-/**
- Dump the buffer in the form of hex.
-
- @param Buf The buffer to dump.
- @param Len The length of buffer.
-
-**/
-VOID
-EhcDumpBuf (
- IN UINT8 *Buf,
- IN UINTN Len
- )
-{
- UINTN Index;
-
- for (Index = 0; Index < Len; Index++) {
- if (Index % 16 == 0) {
- DEBUG ((DEBUG_VERBOSE, "\n"));
- }
-
- DEBUG ((DEBUG_VERBOSE, "%02x ", Buf[Index]));
- }
-
- DEBUG ((DEBUG_VERBOSE, "\n"));
-}
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.h b/MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.h index dfba501d36..1a0c318b39 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.h +++ b/MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.h @@ -36,16 +36,3 @@ EhcDumpQh ( IN CHAR8 *Msg,
IN BOOLEAN DumpBuf
);
-
-/**
- Dump the buffer in the form of hex.
-
- @param Buf The buffer to dump.
- @param Len The length of buffer.
-
-**/
-VOID
-EhcDumpBuf (
- IN UINT8 *Buf,
- IN UINTN Len
- );
|
