HomeFreeBSD

pciconf: Fix up pciconf -lc output

Description

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)

Details

Provenance
dabAuthored on May 24 2021, 7:02 PM
Parents
rG80a5d786a3cd: libsa: Fix infinite loop in bzipfs & gzipfs
Branches
Unknown
Tags
Unknown