diff mbox series

[1/6] htm: Fix compiling on ARM

Message ID 20180703065810.14917-1-mikey@neuling.org
State Accepted
Headers show
Series [1/6] htm: Fix compiling on ARM | expand

Commit Message

Michael Neuling July 3, 2018, 6:58 a.m. UTC
Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 libpdbg/htm.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libpdbg/htm.c b/libpdbg/htm.c
index 906dcfdd8c..7aac8dc72e 100644
--- a/libpdbg/htm.c
+++ b/libpdbg/htm.c
@@ -692,11 +692,13 @@  static int configure_memory(struct htm *htm)
 	 * 1 = Trace Mem Size from 16M to 8G
 	 */
 	if (size < 16777216UL) {
-		PR_ERROR("memtrace size must be atleast 16MB. Currently:%lx\n", size);
+		PR_ERROR("memtrace size must be atleast 16MB. Currently:%"
+			 PRIx64 "\n", size);
 		return -1;
 	}
 	if (size > 274877906944UL) {
-		PR_ERROR("memtrace size must be smaller than 256GB. Currently:%lx\n", size);
+		PR_ERROR("memtrace size must be smaller than 256GB. Currently:%"
+			 PRIx64 "\n", size);
 		return -1;
 	}
 
@@ -1055,7 +1057,7 @@  static int do_htm_dump(struct htm *htm, char *filename)
 	end = htm_trace_size(&status);
 	trace_size = wrapped ? end : last;
 
-	printf("Dumping %li MB to %s\n", trace_size >> 20, filename);
+	printf("Dumping %" PRIi64 " MB to %s\n", trace_size >> 20, filename);
 
 	dump_fd = open(filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
 	if (dump_fd == -1) {