From 696a3d28c08d8636bba507589d40afcb34f95e37 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 17 Feb 2003 18:56:54 +0000 Subject: [PATCH] -v now also prints the pnpinfo and location information for the devices whose bus' provide this information. --- usr.sbin/devinfo/devinfo.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr.sbin/devinfo/devinfo.c b/usr.sbin/devinfo/devinfo.c index 091cd5e51300..7552f2db4c8d 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;