The branch main has been updated by se:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=c44bf7d2e9d2292867f2e23f291266af26762354

commit c44bf7d2e9d2292867f2e23f291266af26762354
Author:     Stefan Eßer <[email protected]>
AuthorDate: 2024-03-22 20:54:11 +0000
Commit:     Stefan Eßer <[email protected]>
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);

Reply via email to