This patch to sysctl(8) makes it handle multi-lineal descriptions (currently found in hw.pci.enable_io_modes, hw.pci.do_power_nodriver, hw.pci.host_mem_start & hw.pci.irq_override_mask) so they appear on just one line. A patch to the PCI files available upon request but other modules that I didn't load could have multi-line descriptions as well, so patching sysctl(8) is necessary. Fix: Attached patch available. Patch attached with submission follows: How-To-Repeat: /sbin/sysctl -d hw.pci.enable_io_modes hw.pci.do_power_nodriver hw.pci.host_mem_start hw.pci.irq_override_mask
Created attachment 160227 [details] Fix the strings in sys/dev/pci.c Use the precompiler to concat strings as not to exceed the 78 char width
Created attachment 160742 [details] Fix the strings in the sysctl-mesgs (v2)
It seems to me that Only wjw's patch should be necessary. The older patch is incorrect. Also, wjw missed some sysctl's with embedded newlines. I find the following: hw.pci.usb_early_takeover hw.pci.do_power_nodriver hw.pci.enable_io_modes hw.pcic.pd6722_vsense hw.pcic.intr_mask
(In reply to Alan Somers from comment #3) Hi Alan, Could very well be. This dates back as far as 2015. And I used several ways to find all the culprits. But likely I missed some. --WjW
A commit references this bug: Author: asomers Date: Mon Oct 9 22:27:38 UTC 2017 New revision: 324457 URL: https://svnweb.freebsd.org/changeset/base/324457 Log: Remove embedded newlines from sysctl variable descriptions PR: 112556 Submitted by: Willem Jan Withagen <wjw@digiware.nl> (earlier version) Reported by: Willem Jan Withagen, ighighi@gmail.com MFC after: 3 weeks Sponsored by: Spectra Logic Corp Changes: head/sys/dev/pccbb/pccbb_isa.c head/sys/dev/pci/pci.c
A commit references this bug: Author: asomers Date: Tue Nov 28 16:09:02 UTC 2017 New revision: 326316 URL: https://svnweb.freebsd.org/changeset/base/326316 Log: MFC r324457: Remove embedded newlines from sysctl variable descriptions PR: 112556 Submitted by: Willem Jan Withagen <wjw@digiware.nl> (earlier version) Reported by: Willem Jan Withagen, ighighi@gmail.com Sponsored by: Spectra Logic Corp Changes: _U stable/11/ stable/11/sys/dev/pccbb/pccbb_isa.c stable/11/sys/dev/pci/pci.c