From 7b8d9e2d0e6baa36266fbf536fc308a105e5c031 Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 14 Aug 2016 23:01:12 +0200 Subject: [PATCH] Fix compiler warnings and 64bitisms. --- util/amisc/aslod.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/util/amisc/aslod.c b/util/amisc/aslod.c index b761898d4..80c92d3c6 100644 --- a/util/amisc/aslod.c +++ b/util/amisc/aslod.c @@ -23,6 +23,9 @@ #include #include #include +#include +#include +#include #include "out.h" #define ASSERT(x) switch (2) { case 0: case (x): ; } @@ -300,11 +303,11 @@ int main(int argc, char* argv[]) { long ss = 0; - printf(" base : %08lX\n", outsect[TEXT].os_base) ; - printf(" text = %08lX\n", outsect[TEXT].os_size); - printf(" rom = %08lX\n", outsect[ROM].os_size); - printf(" data = %08lX\n", outsect[DATA].os_size); - printf(" bss = %08lX\n", outsect[BSS].os_size); + printf(" base : "PRIu32"\n", outsect[TEXT].os_base) ; + printf(" text = "PRIu32"\n", outsect[TEXT].os_size); + printf(" rom = "PRIu32"\n", outsect[ROM].os_size); + printf(" data = "PRIu32"\n", outsect[DATA].os_size); + printf(" bss = "PRIu32"\n", outsect[BSS].os_size); ss += outsect[TEXT].os_size; ss += outsect[ROM].os_size; ss += outsect[DATA].os_size;