]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
readelf: Print dwarf_dieoffset as %PRIx64, not %zx.
authorMark Wielaard <mark@klomp.org>
Tue, 27 Mar 2018 14:22:16 +0000 (16:22 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 27 Mar 2018 14:22:52 +0000 (16:22 +0200)
On 32bit architectures size_t is not 64bit...

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/readelf.c

index f2f99ed1a314f7112238c64218bec64898e198e1..1ad6b3db38e15947791806dcddde6fb8ea1afc79 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-27  Mark Wielaard  <mark@klomp.org>
+
+       * readelf.c (attr_callback): Print dwarf_dieoffset as %PRIx64,
+       not %zx.
+
 2018-03-20  Mark Wielaard  <mark@klomp.org>
 
        * readelf.c (attr_callback): Report error when DW_AT_decl_file or
index 8a968815b754a22d985bfc11da064a3c09894015..4e35b612892a0611966671800c278ab89e175a18 100644 (file)
@@ -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