diff options
Diffstat (limited to 'cmd/systool.c')
-rw-r--r-- | cmd/systool.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/systool.c b/cmd/systool.c index 1da9018..a2a6bbe 100644 --- a/cmd/systool.c +++ b/cmd/systool.c @@ -446,9 +446,11 @@ void show_class_device(struct sysfs_class_device *dev, int level) if (attributes != NULL) show_attributes(attributes, (level+4)); } - if (dev->sysdevice != NULL && (show_options & SHOW_DEVICES)) + if (dev->sysdevice != NULL && (show_options & (SHOW_DEVICES | + SHOW_ALL_ATTRIB_VALUES))) show_device(dev->sysdevice, (level+4)); - if (dev->driver != NULL && (show_options & SHOW_DRIVERS)) + if (dev->driver != NULL && (show_options & (SHOW_DRIVERS | + SHOW_ALL_ATTRIB_VALUES))) show_driver(dev->driver, (level+4)); } } |