diff --git a/software/memtool/memtool.c b/software/memtool/memtool.c index a74f9ee3..2744a6ad 100644 --- a/software/memtool/memtool.c +++ b/software/memtool/memtool.c @@ -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: @@ -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; @@ -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: