From: Mark Wielaard Date: Fri, 22 Jun 2012 16:19:02 +0000 (+0200) Subject: tests/low_high_pc.c: Use proper inttypes in printf formats. X-Git-Tag: elfutils-0.154^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=547049b7a0c4f29ecc9ac5d49e6f2195a7c6346e;p=thirdparty%2Felfutils.git tests/low_high_pc.c: Use proper inttypes in printf formats. Signed-off-by: Mark Wielaard --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 841742d53..6f5e45842 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 ed21b8b1b..d0f43023d 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"); }