From nobody Fri Mar 22 20:58:00 2024 X-Original-To: dev-commits-src-main@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 4V1ZRD2bJDz5FLbR; Fri, 22 Mar 2024 20:58:00 +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 4V1ZRD1krBz4FTH; Fri, 22 Mar 2024 20:58:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711141080; 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=s+CbIJeSqBo/UrvfHHm8DNELR5p39uwy+lmwfu29fzM=; b=ySfoYI/KI6gxR4xQnjMTo4netT1vE9/yoHvNO/yjU2WI3KAMLaAl5kU/TMC0ZT3MqpuIVt r/b9LwXXvQLZmZJMmFOUpFLQs0JQ1Q4DGiX24gaKxNZS32CaXfFXuwglOg9kDSEwtHps4s t57q/Z7VM1zb/R7sf20R4F6NCI1+OXHxcc6VDMDm/sm2rERkTMWx7HMibsMlLVuH0u6xu5 IbHjYy9bUpya+Prw8j9MKFm7Mcf4pgKE+Kz97Doc0LVDGXmr5F3HeRlquafpMQ3rp3V65t mGx73Ve3PEFROzV1JIvFOVU3dDT97dR1Gjy5z0OtwBcqcUA9MloVdrdlFexUsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711141080; a=rsa-sha256; cv=none; b=jRvcouT8j3ds0Rij6ZfaxIaaRxY6bRcMq7SLysNKPzSuW4l7dcDORqLtbNzHMpVrTQ1kYa HQCNIMHSuF8wmWV7zI4bfgU1rJut3B4Do3YmYmmHfUhnJlJPkcfcCnH8sxJXWp94y1+XF2 EcmWByoKLC8DXAagVXk7I1N4m1zPnyKECGdbi0KmxOrLwW1dCBPwfwOF0ReWmdkfjbf4ba OeDpU8bP7dvcg0WPXUVZ/INpPY6SQr1C4bklQB40YWpb1QZqPpeceUB4OXsOalzlItdj+k XlNikxFEstkcUMmvY7fCWFgDo/eIXHVsgKBCg7XM5UodEWnpffL+sr8RCujqKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711141080; 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=s+CbIJeSqBo/UrvfHHm8DNELR5p39uwy+lmwfu29fzM=; b=eil6z8CmtgJDInVWjgpqf0xw7gOtHB2AKPQlwsCwjULqw3x+7C5OeYwHsbkkBqqGyKzEpE ZOsjPX1WvzUae6sKdL5z313IIIFE6aGYNcrstyt4YXPmAZeSS1SgAjv3iNEcIxwopBrm93 34QZuL8uoUUMVu5tldnR2QlQa1R2cKgR5+CWbXf5i1ju4IhLPc4FXCVxLqgPYsuut9n7ns E2K/BY6AVKk44dW7Pg8CG0jMC+2o++dt3GD3pWltxDa439pyf/Zaq8dY14LJxGhIIRAhRe ZnGmYTm/VFVvTg09znO5WoCjJ32meSFuCpGStSGLKry+mmvW7BH9aN+c7U1mjA== 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 4V1ZRD18vFzJv1; Fri, 22 Mar 2024 20:58:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42MKw0EC052332; Fri, 22 Mar 2024 20:58:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42MKw0BU052329; Fri, 22 Mar 2024 20:58:00 GMT (envelope-from git) Date: Fri, 22 Mar 2024 20:58:00 GMT Message-Id: <202403222058.42MKw0BU052329@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Stefan =?utf-8?Q?E=C3=9Fer?= Subject: git: c44bf7d2e9d2 - main - rtld: reduce debug messages after fix on big-endian hosts List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c44bf7d2e9d2292867f2e23f291266af26762354 Auto-Submitted: auto-generated The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=c44bf7d2e9d2292867f2e23f291266af26762354 commit c44bf7d2e9d2292867f2e23f291266af26762354 Author: Stefan Eßer AuthorDate: 2024-03-22 20:54:11 +0000 Commit: Stefan Eßer CommitDate: 2024-03-22 20:54:11 +0000 rtld: reduce debug messages after fix on big-endian hosts Remove a debug message that had been added to support the debugging of a mis-detection of the hint files endianness on powerpc64. MFC after: 3 days --- libexec/rtld-elf/rtld.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 3071eacbc995..ad0e426f2f0e 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -2108,12 +2108,10 @@ cleanup1: hdr.dirlistlen = 0; return (NULL); } - is_le = /*htole32(1) == 1 || */ hdr.magic == htole32(ELFHINTS_MAGIC); dbg("host byte-order: %s-endian", le32toh(1) == 1 ? "little" : "big"); - dbg("hints file byte-order: %s-endian", is_le ? "little" : "big"); - dbg("verify swap macros: le32toh(0x12345678) == %#010x, " - "be32toh(0x12345678) == %#010x", - le32toh(0x12345678), be32toh(0x12345678)); + dbg("hints file byte-order: %s-endian", + hdr.magic == htole32(ELFHINTS_MAGIC) ? "little" : "big"); + is_le = /*htole32(1) == 1 || */ hdr.magic == htole32(ELFHINTS_MAGIC); magic = COND_SWAP(hdr.magic); version = COND_SWAP(hdr.version); strtab = COND_SWAP(hdr.strtab);