HomeFreeBSD

sysctl: emit a newline after NULL node descriptions

Description

sysctl: emit a newline after NULL node descriptions

Previously when printing the sysctl description (via the -d flag) we
omitted the newline if the node provided no description (i.e., NULL).
This could be observed via e.g. sysctl -d dev.

PR: 44034
Reviewed by: zlei
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42112

(cherry picked from commit 75be7e30271bb192fd27698982f2c7e56831eeef)
(cherry picked from commit ced9fe051e31f858a9d1dbec01cf6dec483fab19)

Approved by: re (gjb)

Details

Provenance
emasteAuthored on Oct 6 2023, 6:00 PM
Reviewer
zlei
Differential Revision
D42112: sysctl: emit a newline after NULL node descriptions
Parents
rG6519ec6fbab5: ktrace.2: correct kern.ktrace.genio_size sysctl name
Branches
Unknown
Tags
Unknown