Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156926392
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
@@ -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
Details
Attached
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)
Attached To
Mode
D56248: pciconf: extend tree mode to also print numerical IDs
Attached
Detach File
Event Timeline
Log In to Comment