HomeFreeBSD

kern_ctf.c: Don't print out warning messages unconditionally

Description

kern_ctf.c: Don't print out warning messages unconditionally

The kernel CTF loading routines print various warnings when attempting
to load CTF data from an ELF file. After the changes in c21bc6f3c242
those warnings are unnecessarily printed for each kernel module
that was compiled without CTF data.

The kernel linker already uses the bootverbose flag to conditionally
print CTF loading errors. This patch alters kern_ctf.c
routines to do the same.

Reported by: Alexander@leidinger.net
Approved by: markj (mentor)
Fixes: c21bc6f3c242 ("ddb: Add CTF-based pretty printing")

Details

Provenance
bnovkovAuthored on Mar 29 2024, 7:17 PM
Parents
rG2ae32f1f8fcc: build: Do not pass -fno-sanitize-memory-param-retval to subr_coverage.c
Branches
Unknown
Tags
Unknown