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)

Details

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