]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use larger buffers to read lines from the vendor list.
authordes <des@FreeBSD.org>
Thu, 18 Aug 2005 11:11:40 +0000 (11:11 +0000)
committerdes <des@FreeBSD.org>
Thu, 18 Aug 2005 11:11:40 +0000 (11:11 +0000)
commit8b915afa8a2e89bd421d31b0a375d04fcf37edaa
treed9efeb8fe5806e92404bdd52494116f96de02ae7
parent1dd6384f2b469c080a78b5e3e47d7a341733de1e
Use larger buffers to read lines from the vendor list.
Trim trailing whitespace and comments before parsing, and skip empty lines.
Skip subvendor / subdevice entries (which start with two tab characters).
Change the scanf() format string to match any amount and type of whitespace
between the device ID and the description text.

MFC after: 3 weeks
usr.sbin/pciconf/pciconf.c