From 547049b7a0c4f29ecc9ac5d49e6f2195a7c6346e Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 22 Jun 2012 18:19:02 +0200 Subject: tests/low_high_pc.c: Use proper inttypes in printf formats. Signed-off-by: Mark Wielaard --- tests/ChangeLog | 4 ++++ tests/low_high_pc.c | 4 ++-- 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 + + * low_high_pc.c: Use proper inttypes in printf formats. + 2012-05-11 Mark Wielaard * 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"); } -- cgit v1.2.3