From: Mark Wielaard Date: Mon, 28 Aug 2023 14:30:14 +0000 (+0200) Subject: Use hex_string in gdb/coffread.c instead of PRIxPTR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6ce491c3d926650407927a338d9678ca983bee4;p=binutils-gdb.git Use hex_string in gdb/coffread.c instead of PRIxPTR The getsymname function uses PRIxPTR to print and uintptr_t value in an error message. Use hex_string instead. Approved-By: Tom Tromey --- diff --git a/gdb/coffread.c b/gdb/coffread.c index c609c963453..c2fe9fa1761 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -1325,8 +1325,8 @@ getsymname (struct internal_syment *symbol_entry) if (symbol_entry->_n._n_n._n_zeroes == 0) { if (symbol_entry->_n._n_n._n_offset > stringtab_length) - error (_("COFF Error: string table offset (%" PRIxPTR ") outside string table (length %ld)"), - symbol_entry->_n._n_n._n_offset, stringtab_length); + error (_("COFF Error: string table offset (%s) outside string table (length %ld)"), + hex_string (symbol_entry->_n._n_n._n_offset), stringtab_length); result = stringtab + symbol_entry->_n._n_n._n_offset; } else