aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/devinfo/devinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/devinfo/devinfo.c')
-rw-r--r--usr.sbin/devinfo/devinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/devinfo/devinfo.c b/usr.sbin/devinfo/devinfo.c
index 32d2932b4676..40f2b0b42eba 100644
--- a/usr.sbin/devinfo/devinfo.c
+++ b/usr.sbin/devinfo/devinfo.c
@@ -146,6 +146,10 @@ print_device(struct devinfo_dev *dev, void *arg)
printf(" pnpinfo %s", dev->dd_pnpinfo);
if (vflag && *dev->dd_location)
printf(" at %s", dev->dd_location);
+ if (!(dev->dd_flags & DF_ENABLED))
+ printf(" (disabled)");
+ else if (dev->dd_flags & DF_SUSPENDED)
+ printf(" (suspended)");
printf("\n");
if (rflag) {
ia.indent = indent + 4;