Skip to content

Commit

Permalink
[software] fix memtool
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed Aug 13, 2020
1 parent 33e9417 commit 90e6daa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions software/memtool/memtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ int main(int argc, char *argv[])
char end = (col == (num_cols - 1)) ? '\n' : ' ';

if (col == 0)
printf("%08lX: ", mem_addr + (ptr - mem_ptr));
printf("%08X: ", mem_addr + (ptr - mem_ptr));

switch (opt_ds) {
case DS_8:
Expand All @@ -657,7 +657,7 @@ int main(int argc, char *argv[])
break;

case DS_64:
printf("%016lX%c", *(uint64_t *)ptr, end);
printf("%016llX%c", *(uint64_t *)ptr, end);
ptr += 8;
cnt -= 8;
break;
Expand Down Expand Up @@ -731,7 +731,7 @@ int main(int argc, char *argv[])
break;

case DS_64:
printf("0x%016lX\n", *(uint64_t *)mem_ptr);
printf("0x%016llX\n", *(uint64_t *)mem_ptr);
break;

default:
Expand Down

0 comments on commit 90e6daa

Please sign in to comment.