From c44bf7d2e9d2292867f2e23f291266af26762354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Fri, 22 Mar 2024 21:54:11 +0100 Subject: [PATCH] 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 3071eacbc99..ad0e426f2f0 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);