linux: Prefix AT_HWCAP with 0x on LD_SHOW_AUXV

Suggested-by: Stefan Liebler <stli@linux.ibm.com>
Reviewed-by: Stefan Liebler <stli@linux.ibm.com>
This commit is contained in:
Adhemerval Zanella 2025-02-26 15:50:05 -03:00
parent 1d60b9dfda
commit 6cb703b81d
1 changed files with 4 additions and 4 deletions

View File

@ -184,7 +184,10 @@ _dl_show_auxv (void)
[AT_GID - 2] = { "GID: ", dec }, [AT_GID - 2] = { "GID: ", dec },
[AT_EGID - 2] = { "EGID: ", dec }, [AT_EGID - 2] = { "EGID: ", dec },
[AT_PLATFORM - 2] = { "PLATFORM: ", str }, [AT_PLATFORM - 2] = { "PLATFORM: ", str },
[AT_HWCAP - 2] = { "HWCAP: ", hex }, [AT_HWCAP - 2] = { "HWCAP: 0x", hex },
[AT_HWCAP2 - 2] = { "HWCAP2: 0x", hex },
[AT_HWCAP3 - 2] = { "HWCAP3: 0x", hex },
[AT_HWCAP4 - 2] = { "HWCAP4: 0x", hex },
[AT_CLKTCK - 2] = { "CLKTCK: ", dec }, [AT_CLKTCK - 2] = { "CLKTCK: ", dec },
[AT_FPUCW - 2] = { "FPUCW: ", hex }, [AT_FPUCW - 2] = { "FPUCW: ", hex },
[AT_DCACHEBSIZE - 2] = { "DCACHEBSIZE: 0x", hex }, [AT_DCACHEBSIZE - 2] = { "DCACHEBSIZE: 0x", hex },
@ -196,9 +199,6 @@ _dl_show_auxv (void)
[AT_SYSINFO - 2] = { "SYSINFO: 0x", hex }, [AT_SYSINFO - 2] = { "SYSINFO: 0x", hex },
[AT_SYSINFO_EHDR - 2] = { "SYSINFO_EHDR: 0x", hex }, [AT_SYSINFO_EHDR - 2] = { "SYSINFO_EHDR: 0x", hex },
[AT_RANDOM - 2] = { "RANDOM: 0x", hex }, [AT_RANDOM - 2] = { "RANDOM: 0x", hex },
[AT_HWCAP2 - 2] = { "HWCAP2: 0x", hex },
[AT_HWCAP3 - 2] = { "HWCAP3: 0x", hex },
[AT_HWCAP4 - 2] = { "HWCAP4: 0x", hex },
[AT_RSEQ_FEATURE_SIZE - 2] = { "RSEQ_FEATURE_SIZE: ", dec }, [AT_RSEQ_FEATURE_SIZE - 2] = { "RSEQ_FEATURE_SIZE: ", dec },
[AT_RSEQ_ALIGN - 2] = { "RSEQ_ALIGN: ", dec }, [AT_RSEQ_ALIGN - 2] = { "RSEQ_ALIGN: ", dec },
[AT_MINSIGSTKSZ - 2] = { "MINSIGSTKSZ: ", dec }, [AT_MINSIGSTKSZ - 2] = { "MINSIGSTKSZ: ", dec },