summaryrefslogtreecommitdiffstats
path: root/libpdbg/adu.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-07-14 14:51:11 +1000
committerAlistair Popple <alistair@popple.id.au>2017-07-14 14:56:32 +1000
commit7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561 (patch)
tree1059647d639409915512d2aaf5a74e379bbe2f53 /libpdbg/adu.c
parent62ddc2bfa872aeaae3bf07e8ac1d9e6b028c87ce (diff)
downloadpdbg-7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561.tar.gz
pdbg-7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561.zip
Makefile.am: Enable -Wall -Werror for libpdbg
Several minor fixes were required to enable building on both x64 and ARM with -Wall -Werror, mostly related to unused variables and bad printf string formats. Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/adu.c')
-rw-r--r--libpdbg/adu.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libpdbg/adu.c b/libpdbg/adu.c
index f2f6649..3d6f662 100644
--- a/libpdbg/adu.c
+++ b/libpdbg/adu.c
@@ -16,6 +16,7 @@
#include <stdio.h>
#include <stdint.h>
#include <string.h>
+#include <inttypes.h>
#include "operations.h"
#include "bitutils.h"
@@ -221,7 +222,7 @@ retry:
goto retry;
else {
PR_ERROR("Unable to read memory. " \
- "ALTD_STATUS_REG = 0x%016llx\n", val);
+ "ALTD_STATUS_REG = 0x%016" PRIx64 "\n", val);
return -1;
}
}
@@ -277,7 +278,7 @@ retry:
goto retry;
else {
PR_ERROR("Unable to write memory. " \
- "P8_ALTD_STATUS_REG = 0x%016llx\n", val);
+ "P8_ALTD_STATUS_REG = 0x%016" PRIx64 "\n", val);
rc = -1;
}
}
@@ -323,7 +324,7 @@ retry:
goto retry;
else {
PR_ERROR("Unable to read memory. " \
- "ALTD_STATUS_REG = 0x%016llx\n", val);
+ "ALTD_STATUS_REG = 0x%016" PRIx64 "\n", val);
return -1;
}
}
@@ -375,7 +376,7 @@ retry:
goto retry;
else {
PR_ERROR("Unable to read memory. " \
- "ALTD_STATUS_REG = 0x%016llx\n", val);
+ "ALTD_STATUS_REG = 0x%016" PRIx64 "\n", val);
return -1;
}
}
OpenPOWER on IntegriCloud