summaryrefslogtreecommitdiffstats
path: root/usr.sbin/devinfo
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-02-17 18:56:54 +0000
committerimp <imp@FreeBSD.org>2003-02-17 18:56:54 +0000
commite7ca39a4f3c2d57e011ecf507129c80f8edc9261 (patch)
tree4502b8e4867b4bf74537d1bc9714a80d82150fd1 /usr.sbin/devinfo
parente99e4d0404e27542a16b153f15b944441598d572 (diff)
downloadFreeBSD-src-e7ca39a4f3c2d57e011ecf507129c80f8edc9261.zip
FreeBSD-src-e7ca39a4f3c2d57e011ecf507129c80f8edc9261.tar.gz
-v now also prints the pnpinfo and location information for the devices
whose bus' provide this information.
Diffstat (limited to 'usr.sbin/devinfo')
-rw-r--r--usr.sbin/devinfo/devinfo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/devinfo/devinfo.c b/usr.sbin/devinfo/devinfo.c
index 091cd5e..7552f2d 100644
--- a/usr.sbin/devinfo/devinfo.c
+++ b/usr.sbin/devinfo/devinfo.c
@@ -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;
OpenPOWER on IntegriCloud