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
@@ -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(" [%#06x:%#06x "
+ "%#06x:%#06x]",
+ p->pc_vendor,
+ p->pc_device,
+ p->pc_subvendor,
+ p->pc_subdevice);
break;
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 19, 3:15 AM (14 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31743648
Default Alt Text
D56248.id.diff (1 KB)

Event Timeline