summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2018-03-27 16:22:16 +0200
committerMark Wielaard <[email protected]>2018-03-27 16:22:52 +0200
commitf0d7b3e14779cdf5facede98edc924ef1266b785 (patch)
tree8bc251617d3d37537070290108f48d57f1501c98 /src
parentcda00f3bf57c18783971bd1d423d2fa0c478f95c (diff)
readelf: Print dwarf_dieoffset as %PRIx64, not %zx.
On 32bit architectures size_t is not 64bit... Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/readelf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f2f99ed1..1ad6b3db 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2018-03-27 Mark Wielaard <[email protected]>
+
+ * readelf.c (attr_callback): Print dwarf_dieoffset as %PRIx64,
+ not %zx.
+
2018-03-20 Mark Wielaard <[email protected]>
* readelf.c (attr_callback): Report error when DW_AT_decl_file or
diff --git a/src/readelf.c b/src/readelf.c
index 8a968815..4e35b612 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