]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pciconf: Fix up pciconf -lc output
authorDavid Bright <dab@FreeBSD.org>
Mon, 24 May 2021 19:02:43 +0000 (14:02 -0500)
committerDavid Bright <dab@FreeBSD.org>
Wed, 9 Jun 2021 16:17:58 +0000 (11:17 -0500)
commit7f06d6f3fdde93f5f9cf1fde2d0a058f2c6fe01a
tree7b5e41348ebf6c734b349d08aed389e86314f7af
parent3045f4aa1a2b5f524e52297bb9a4fa6a2d4ac9ab
pciconf: Fix up pciconf -lc output

The pciconf command fails to emit newlines when particular ecap field
values are seen. Fix them up. This has been seen on several systems at
$JOB. The documentation for PCI capabilities says that capability
type 0 should not be used once the spec for PCI capabilities was
published, but that seems more wishful-thinking than reality. pciconf
also chooses not to print fields related to field values that are
zero, but it seems several of these fields are zero on actual
hardware.

Sponsored by: Dell EMC Isilon
Submitted by: Robert Herndon (Robert.Herndon@dell.com)

(cherry picked from commit 2f176a2b20107f7a9132242223e9eef657400514)
usr.sbin/pciconf/cap.c