[PATCH 4/8] winedump: Consistently print hex numbers with leading zeros and 'h' suffix.

Dmitry Timoshkov dmitry at baikal.ru
Mon Jul 9 22:41:40 CDT 2018


Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 tools/winedump/tlb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winedump/tlb.c b/tools/winedump/tlb.c
index 0d8f059c03..bc19087fc5 100644
--- a/tools/winedump/tlb.c
+++ b/tools/winedump/tlb.c
@@ -204,7 +204,7 @@ static int print_hex(const char *name)
 {
     int ret;
     print_offset();
-    printf("%s = %08x\n", name, ret=tlb_read_int());
+    printf("%s = %08xh\n", name, ret=tlb_read_int());
     return ret;
 }
 
@@ -219,7 +219,7 @@ static int print_short_hex(const char *name)
 {
     int ret;
     print_offset();
-    printf("%s = %xh\n", name, ret=tlb_read_short());
+    printf("%s = %04xh\n", name, ret=tlb_read_short());
     return ret;
 }
 
-- 
2.17.1




More information about the wine-devel mailing list