From nobody Mon Dec 19 17:59:13 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NbSBn4FcLz1GLkK; Mon, 19 Dec 2022 17:59:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NbSBn3bhdz3vgx; Mon, 19 Dec 2022 17:59:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671472753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+74ctptspp5eixIXAlTFm/vzGnqTiHI5uGPaoldWqVU=; b=LpI3FLQVJCNzt/msKQArZpwUm/tfyEi7pFYApeEMSTaYcSDdYdLrBsG/GwLvLA36waIOFq ip1XB7QH+cpDpnPL6J+7r/KDPGibZFCdLDgGZkK7FRtTZVZ1q+cOGKrETicG7gBo/fx/x9 qeihLFf0UzVgf30LwwdgVFAMx8sOiDuUYGn9PGpkRh6tfphgqEFh9B87eMMBjWIfShGDUG RwslJHv917RtUAHvA+HPdu7Y+u019oVjnEiTHv9urZEk4qvq8h2iTREX9Y4x1lKQ2axsrt Upx6ZnuYpLf112BWT86N504naLh6HRGZzIzZmlslfYldi+AjB4VzqGmFkmHoHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671472753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+74ctptspp5eixIXAlTFm/vzGnqTiHI5uGPaoldWqVU=; b=wIl6Z6422nEKADOoquTc7NEynMO6kKrCph5oX7dXh0utbz3SEDXsOWV72OyM6xV1Pv0PQz 1TLPGuW3F9/TBT0JQtimT6fONkI0suWC/vq/jMWuqplYsyLzddHnLuG/nKrivn22o3mhSP Tx6JsAtwiASY/sHHFkSWDvD/PeNVQ90XDNOZG7p1Bly995H5ZPj4BoF9KxPB9/aJRK0n5s fH+zaY/Dm0ubOXOdpP3Vee8Oxei3EnaliaNlwOgHXTLAxm0VTfa4jGK6pJh5nsUgFCK2Ae RXr8scDoytO9r9a6s6znR4xvIBa4t/hzj5YPNK8MAfrvi9HVGVj7NBRmKJlimw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671472753; a=rsa-sha256; cv=none; b=hCSsJtqwmJnMhxPmhXP8Jw8xwIpQX8CeQ7MelQq25cMAr91B8cju4kh/XLBHEwDnUPmZax 132RJhYTEVI+/oCcqAnIPRRT3WYPcsIWd1qoz+aFGpx3nz1+3R2aEJgJG1Pv5y4vGVBJ0D V7yke1P4OlPDdCRh6DNLEz5n9tuf9zuG2E26SqXn1Osh+iIoUoJuIYtWjou9docFquU25f p8Q7QfkTmiDXyoYsYhQiJTCVTHrY+vQScAWe1Y3cXXY8XPeE++20bBmErre1Cbhn3i+RM+ oMVN85srKeFOShD3XIgtHTZ1g1qMGClOx9mNEAYf3sIQUx5s4JrFV1z3GiOUiw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NbSBn2XRpz13r9; Mon, 19 Dec 2022 17:59:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BJHxDqj085775; Mon, 19 Dec 2022 17:59:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BJHxDlx085774; Mon, 19 Dec 2022 17:59:13 GMT (envelope-from git) Date: Mon, 19 Dec 2022 17:59:13 GMT Message-Id: <202212191759.2BJHxDlx085774@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 766145637dd5 - main - readelf: match GNU readelf formatting List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 766145637dd5f1316c2ac4a20956e1b17bf8df42 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=766145637dd5f1316c2ac4a20956e1b17bf8df42 commit 766145637dd5f1316c2ac4a20956e1b17bf8df42 Author: Ed Maste AuthorDate: 2022-12-13 20:07:46 +0000 Commit: Ed Maste CommitDate: 2022-12-19 17:57:41 +0000 readelf: match GNU readelf formatting GNU readelf emits a blank line before, and uses single quotes around the symbol table name, in each "Symbol table 'name' contains ## entries" header. Reviewed by: markj MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37746 --- contrib/elftoolchain/readelf/readelf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c index 25dda95f2a50..77125b77ebef 100644 --- a/contrib/elftoolchain/readelf/readelf.c +++ b/contrib/elftoolchain/readelf/readelf.c @@ -3263,8 +3263,7 @@ dump_symtab(struct readelf *re, int i) return; if (!get_ent_count(s, &len)) return; - printf("Symbol table (%s)", s->name); - printf(" contains %d entries:\n", len); + printf("\nSymbol table '%s' contains %d entries:\n", s->name, len); printf("%7s%9s%14s%5s%8s%6s%9s%5s\n", "Num:", "Value", "Size", "Type", "Bind", "Vis", "Ndx", "Name");