Page MenuHomeFreeBSD

D56248.id.diff
No OneTemporary

D56248.id.diff

diff --git a/usr.sbin/pciconf/pciconf.8 b/usr.sbin/pciconf/pciconf.8
--- a/usr.sbin/pciconf/pciconf.8
+++ b/usr.sbin/pciconf/pciconf.8
@@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd March 10, 2026
+.Dd May 13, 2026
.Dt PCICONF 8
.Os
.Sh NAME
@@ -309,6 +309,10 @@
strings from the vendor/device information database.
If an identification string is not found in the database,
the ID register values are output instead.
+If the
+.Fl v
+flag is specified twice the device's vendor and device, as well as the
+subvendor and subdevice IDs are printed in addition to the found strings.
.Ss Device Information Modes
With the
.Fl a
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c
--- a/usr.sbin/pciconf/pciconf.c
+++ b/usr.sbin/pciconf/pciconf.c
@@ -169,7 +169,7 @@
break;
case 'v':
- verbose = 1;
+ verbose++;
break;
case 'V':
@@ -495,6 +495,13 @@
TAILQ_FOREACH(di, &vi->devs, link) {
if (di->id == p->pc_device) {
printf(" %s", di->desc);
+ if (verbose > 1)
+ printf(" [0x%04x:0x%04x "
+ "0x%04x:0x%04x]",
+ p->pc_vendor,
+ p->pc_device,
+ p->pc_subvendor,
+ p->pc_subdevice);
break;
}
}

File Metadata

Mime Type
text/plain
Expires
Mon, May 18, 10:06 AM (3 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33243448
Default Alt Text
D56248.id.diff (1 KB)

Event Timeline