summaryrefslogtreecommitdiffstats
path: root/usr.sbin/devinfo
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2009-11-15 16:44:43 +0000
committerattilio <attilio@FreeBSD.org>2009-11-15 16:44:43 +0000
commit9dd892aeae833cc67a6f5e8d602972bbedec5eb6 (patch)
treea803af1c94671a1fcfeeaba899652b29e87f3253 /usr.sbin/devinfo
parentd1297db1aeb036a628e2f6fc5bd24e6f91cdb7b0 (diff)
downloadFreeBSD-src-9dd892aeae833cc67a6f5e8d602972bbedec5eb6.zip
FreeBSD-src-9dd892aeae833cc67a6f5e8d602972bbedec5eb6.tar.gz
Collapse devinfo_state_t with device_state_t in order to avoid a
structure replication and improve manteneability. Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org>
Diffstat (limited to 'usr.sbin/devinfo')
-rw-r--r--usr.sbin/devinfo/devinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/devinfo/devinfo.c b/usr.sbin/devinfo/devinfo.c
index c32e57b..73dcfd5 100644
--- a/usr.sbin/devinfo/devinfo.c
+++ b/usr.sbin/devinfo/devinfo.c
@@ -137,7 +137,7 @@ print_device(struct devinfo_dev *dev, void *arg)
struct indent_arg ia;
int i, indent;
- if (vflag || (dev->dd_name[0] != 0 && dev->dd_state >= DIS_ATTACHED)) {
+ if (vflag || (dev->dd_name[0] != 0 && dev->dd_state >= DS_ATTACHED)) {
indent = (int)(intptr_t)arg;
for (i = 0; i < indent; i++)
printf(" ");
OpenPOWER on IntegriCloud