diff --git a/usr.sbin/devinfo/devinfo.8 b/usr.sbin/devinfo/devinfo.8 --- a/usr.sbin/devinfo/devinfo.8 +++ b/usr.sbin/devinfo/devinfo.8 @@ -35,7 +35,7 @@ .Nm .Op Fl rv .Nm -.Fl u +.Fl u Op Fl v .Nm .Fl p Ar dev Op Fl v .Sh DESCRIPTION diff --git a/usr.sbin/devinfo/devinfo.c b/usr.sbin/devinfo/devinfo.c --- a/usr.sbin/devinfo/devinfo.c +++ b/usr.sbin/devinfo/devinfo.c @@ -185,8 +185,16 @@ printf(" "); print_resource(res); dev = devinfo_handle_to_device(res->dr_device); - if ((dev != NULL) && (dev->dd_name[0] != 0)) { - printf(" (%s)", dev->dd_name); + if (dev != NULL) { + if (dev->dd_name[0] != 0) { + printf(" (%s)", dev->dd_name); + } else { + printf(" (unknown)"); + if (vflag && *dev->dd_pnpinfo) + printf(" pnpinfo %s", dev->dd_pnpinfo); + if (vflag && *dev->dd_location) + printf(" at %s", dev->dd_location); + } } else { printf(" ----"); } @@ -233,7 +241,7 @@ { fprintf(stderr, "%s\n%s\n%s\n", "usage: devinfo [-rv]", - " devinfo -u", + " devinfo -u [-v]", " devinfo -p dev [-v]"); exit(1); }