]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Use dwarf_form_name for printing (unknown) forms.
authorMark Wielaard <mark@klomp.org>
Mon, 1 Jan 2018 21:39:24 +0000 (22:39 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 1 Jan 2018 21:42:05 +0000 (22:42 +0100)
commit68cd423edbba61af902eed2abe85578f1c134a25
treecb617cc51f9d33302d52df7b9e0bb6da885a0cbd
parent699a741b488010d56cc358a5f7b4d8a8f4886347
readelf: Use dwarf_form_name for printing (unknown) forms.

Use dwarf_form_name consistently to print forms. attr_callback was
using its own string conversion, print_debug_macro_section was using
dwarf_form_string instead of dwarf_form_name.

The difference between dwarf_form_string and dwarf_form_name is that
the first returns NULL if the form is unknown and the second returns
an hexadecimal string representation in that case.

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