From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 49123393D03B; Tue, 29 Jun 2021 07:32:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49123393D03B From: "gvalky at tachyum dot com" To: elfutils-devel@sourceware.org Subject: [Bug general/28023] New: Incorrect error message in readelf.c in compare_listptr Date: Tue, 29 Jun 2021 07:32:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: gvalky at tachyum dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2021 07:32:37 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28023 Bug ID: 28023 Summary: Incorrect error message in readelf.c in compare_listptr Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: minor Priority: P2 Component: general Assignee: unassigned at sourceware dot org Reporter: gvalky at tachyum dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- elfutils-0.185/src/readelf.c:4884 When comparing the attribute names in compare_listptr, the error message complaining that the attributes are different, shows the same value for both names: if (p1->attr !=3D p2 ->attr) { p1->warned =3D p2->warned =3D true; error (0, 0, _("%s %#" PRIx64 " used with different attribute %s and %s"), name, (uint64_t) p1->offset, dwarf_attr_name (p2->attr), dwarf_attr_name (p2->attr)); } after correction: if (p1->attr !=3D p2->attr) { p1->warned =3D p2->warned =3D true; error (0, 0, _("%s %#" PRIx64 " used with different attribute %s and %s"), name, (uint64_t) p1->offset, dwarf_attr_name (p1->attr), dwarf_attr_name (p2->attr)); } --=20 You are receiving this mail because: You are on the CC list for the bug.=