diff options
| author | Mark Wielaard <[email protected]> | 2021-07-03 18:56:54 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2021-07-03 18:56:54 +0200 |
| commit | e8b5a5e9d8b8a503755a8a48c23a64a695664270 (patch) | |
| tree | ed28d373d73be0cd94a167b9af35a9b6ac18f3a9 /src | |
| parent | e32782a4fe314ff0cf96039d1142706a1d701587 (diff) | |
readelf: Fix error message when two attribute names differ in in compare_listptr.
We were printing the second attribute name twice. Print the first and second.
Reported-by: Gabriel Valky <[email protected]>
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/readelf.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 71599e5d..cfbcfd48 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2021-07-03 Mark Wielaard <[email protected]> + + * readelf.c (compare_listptr): Fix dwarf_attr_name argument. + 2021-06-18 Mark Wielaard <[email protected]> * unstrip.c (adjust_relocs): Check gelf_getrel and geld_getrela. diff --git a/src/readelf.c b/src/readelf.c index 9b472622..1f13f765 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -4887,7 +4887,7 @@ compare_listptr (const void *a, const void *b) error (0, 0, _("%s %#" PRIx64 " used with different attribute %s and %s"), - name, (uint64_t) p1->offset, dwarf_attr_name (p2->attr), + name, (uint64_t) p1->offset, dwarf_attr_name (p1->attr), dwarf_attr_name (p2->attr)); } } |
