From: Mark Wielaard Date: Tue, 27 Mar 2018 14:22:16 +0000 (+0200) Subject: readelf: Print dwarf_dieoffset as %PRIx64, not %zx. X-Git-Tag: elfutils-0.171~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0d7b3e14779cdf5facede98edc924ef1266b785;p=thirdparty%2Felfutils.git readelf: Print dwarf_dieoffset as %PRIx64, not %zx. On 32bit architectures size_t is not 64bit... Signed-off-by: Mark Wielaard --- diff --git a/src/ChangeLog b/src/ChangeLog index f2f99ed1a..1ad6b3db3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2018-03-27 Mark Wielaard + + * readelf.c (attr_callback): Print dwarf_dieoffset as %PRIx64, + not %zx. + 2018-03-20 Mark Wielaard * readelf.c (attr_callback): Report error when DW_AT_decl_file or diff --git a/src/readelf.c b/src/readelf.c index 8a968815b..4e35b6128 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -6258,7 +6258,7 @@ attr_callback (Dwarf_Attribute *attrp, void *arg) num, dwarf_errmsg (-1)); } else - error (0, 0, gettext ("no srcfiles for CU [%zx]"), + error (0, 0, gettext ("no srcfiles for CU [%" PRIx64 "]"), dwarf_dieoffset (&cudie)); } else