Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152927277
D56248.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56248.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D56248: pciconf: extend tree mode to also print numerical IDs
Attached
Detach File
Event Timeline
Log In to Comment