]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests/low_high_pc.c: Use proper inttypes in printf formats. elfutils-0.154
authorMark Wielaard <mjw@redhat.com>
Fri, 22 Jun 2012 16:19:02 +0000 (18:19 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 22 Jun 2012 16:19:02 +0000 (18:19 +0200)
Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/low_high_pc.c

index 841742d539d07edb81517a84b61d871a7a70ee71..6f5e458420a7cdb9306cccc88859335109a4c6bf 100644 (file)
@@ -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.
index ed21b8b1bca3baef976151fd3b577fd27e527ab1..d0f43023d6a3913f093633f85a92731fa920d662 100644 (file)
@@ -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");
     }