summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2012-06-22 18:19:02 +0200
committerMark Wielaard <mjw@redhat.com>2012-06-22 18:19:02 +0200
commit547049b7a0c4f29ecc9ac5d49e6f2195a7c6346e (patch)
tree30e1adf877eb790fa483261107a84453f28a9b82
parent50e2d39a524a2e166e1f779b8dae7473a52be26e (diff)
tests/low_high_pc.c: Use proper inttypes in printf formats.elfutils-0.154
Signed-off-by: Mark Wielaard <mjw@redhat.com>
-rw-r--r--tests/ChangeLog4
-rw-r--r--tests/low_high_pc.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 841742d5..6f5e4584 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-07 Mark Wielaard <mjw@redhat.com>
+
+ * low_high_pc.c: Use proper inttypes in printf formats.
+
2012-05-11 Mark Wielaard <mjw@redhat.com>
* Makefile.am (TESTS_ENVIRONMENT): Set LC_ALL and LANG to C.
diff --git a/tests/low_high_pc.c b/tests/low_high_pc.c
index ed21b8b1..d0f43023 100644
--- a/tests/low_high_pc.c
+++ b/tests/low_high_pc.c
@@ -43,7 +43,7 @@ static struct args *args;
static void
fail(Dwarf_Off off, const char *name, const char *msg)
{
- printf("%s: [%lx] '%s' %s\n", args->file, off, name, msg);
+ printf("%s: [%" PRIx64 "] '%s' %s\n", args->file, off, name, msg);
exit(-1);
}
@@ -71,7 +71,7 @@ handle_die (Dwarf_Die *die, void *arg)
&& highpc <= lowpc
&& ! (dwarf_tag (die) == DW_TAG_compile_unit && highpc == lowpc))
{
- printf("lowpc: %lx, highpc: %lx\n", lowpc, highpc);
+ printf("lowpc: %" PRIx64 ", highpc: %" PRIx64 "lx\n", lowpc, highpc);
fail (off, name, "highpc <= lowpc");
}