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

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2018-07-10 11:41:40 +08:00 committed by Alexandre Julliard
parent a6d08adcdb
commit ed6e1dfc72
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}