From cad19bf054dcb6b58c9e3bd0c30bcc7f8f57684c Mon Sep 17 00:00:00 2001 From: emaste Date: Wed, 30 Jan 2019 21:46:12 +0000 Subject: [PATCH] readelf: fix i386 build Use %jx and (uintmax_t) cast. PR: 232983 MFC with: r343592 Sponsored by: The FreeBSD Foundation --- contrib/elftoolchain/readelf/readelf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c index 80be58f92c1f..c186de9b93e2 100644 --- a/contrib/elftoolchain/readelf/readelf.c +++ b/contrib/elftoolchain/readelf/readelf.c @@ -2841,7 +2841,7 @@ dump_dt_flags_val(uint64_t d_val) printf(" STATIC_TLS"); } if (d_val) - printf(" %lx", d_val); + printf(" %jx", (uintmax_t)d_val); printf("\n"); } @@ -2945,7 +2945,7 @@ dump_dt_flags_1_val(uint64_t d_val) printf(" GLOBAUDIT"); } if (d_val) - printf(" %lx", d_val); + printf(" %jx", (uintmax_t)d_val); printf("\n"); }