+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.
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);
}
&& 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");
}