mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
-v now also prints the pnpinfo and location information for the devices
whose bus' provide this information.
This commit is contained in:
parent
085aa77164
commit
696a3d28c0
1 changed files with 6 additions and 1 deletions
|
|
@ -141,7 +141,12 @@ print_device(struct devinfo_dev *dev, void *arg)
|
|||
indent = (int)(intptr_t)arg;
|
||||
for (i = 0; i < indent; i++)
|
||||
printf(" ");
|
||||
printf("%s\n", dev->dd_name[0] ? dev->dd_name : "unknown");
|
||||
printf("%s", dev->dd_name[0] ? dev->dd_name : "unknown");
|
||||
if (vflag && *dev->dd_pnpinfo)
|
||||
printf(" pnpinfo %s", dev->dd_pnpinfo);
|
||||
if (vflag && *dev->dd_location)
|
||||
printf(" at %s", dev->dd_location);
|
||||
printf("\n");
|
||||
if (rflag) {
|
||||
ia.indent = indent + 4;
|
||||
ia.arg = dev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue