From 90e6daa2a934c14faf7b7197b2f3da0ca7410b57 Mon Sep 17 00:00:00 2001 From: Robin Heinemann Date: Thu, 13 Aug 2020 14:11:51 +0200 Subject: [PATCH] [software] fix memtool --- software/memtool/memtool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: