Dmitry Timoshkov : winedump: Consistently print hex numbers with leading zeros and 'h' suffix.

Alexandre Julliard julliard at winehq.org
Tue Jul 10 15:36:43 CDT 2018


Module: wine
Branch: master
Commit: ed6e1dfc72a7fea14a322668ba7355ae6a9475a2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ed6e1dfc72a7fea14a322668ba7355ae6a9475a2

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Jul 10 11:41:40 2018 +0800

winedump: Consistently print hex numbers with leading zeros and 'h' suffix.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 0d8f059..bc19087 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;
 }
 




More information about the wine-cvs mailing list