https://git.reactos.org/?p=reactos.git;a=commitdiff;h=89b44cfa074c337959530…
commit 89b44cfa074c33795953033ba42236dc414ade91
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Nov 3 02:17:15 2019 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Nov 3 05:08:39 2019 +0100
[NTOS:KDBG] Use fixed-length hexadecimal printing for addresses.
---
ntoskrnl/kdbg/kdb_cli.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ntoskrnl/kdbg/kdb_cli.c b/ntoskrnl/kdbg/kdb_cli.c
index 1cafedd8686..1211a274383 100644
--- a/ntoskrnl/kdbg/kdb_cli.c
+++ b/ntoskrnl/kdbg/kdb_cli.c
@@ -797,7 +797,7 @@ KdbpCmdDisassembleX(
while (Count > 0)
{
if (!KdbSymPrintAddress((PVOID)Address, NULL))
- KdbpPrint("<%x>:", Address);
+ KdbpPrint("<%08x>:", Address);
else
KdbpPrint(":");
@@ -2116,7 +2116,7 @@ KdbpCmdPcr(
{
PKIPCR Pcr = (PKIPCR)KeGetPcr();
- KdbpPrint("Current PCR is at 0x%08x.\n", (INT)Pcr);
+ KdbpPrint("Current PCR is at 0x%p.\n", Pcr);
KdbpPrint(" Tib.ExceptionList: 0x%08x\n"
" Tib.StackBase: 0x%08x\n"
" Tib.StackLimit: 0x%08x\n"
@@ -2163,7 +2163,7 @@ KdbpCmdTss(
{
KTSS *Tss = KeGetPcr()->TSS;
- KdbpPrint("Current TSS is at 0x%08x.\n", (INT)Tss);
+ KdbpPrint("Current TSS is at 0x%p.\n", Tss);
KdbpPrint(" Eip: 0x%08x\n"
" Es: 0x%04x\n"
" Cs: 0x%04x\n"
@@ -3470,7 +3470,7 @@ KdbpCliMainLoop(
{
if (!KdbSymPrintAddress((PVOID)KdbCurrentTrapFrame->Tf.Eip,
&KdbCurrentTrapFrame->Tf))
{
- KdbpPrint("<%x>", KdbCurrentTrapFrame->Tf.Eip);
+ KdbpPrint("<%08x>", KdbCurrentTrapFrame->Tf.Eip);
}
KdbpPrint(": ");