diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-07-02 22:56:19 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-07-02 22:56:19 +0200 |
commit | 456719b6f941d917e7c9444fa6149f35a188d785 (patch) | |
tree | 6b5e3b5eea9db2971f1fd26824a701fba0b1396a /udev | |
parent | 9fd2e7e95d9f782958becf8310eea1a11af10d35 (diff) |
udevadm: test - print list of properties
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udevadm-test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/udev/udevadm-test.c b/udev/udevadm-test.c index e49d52c5f1..6c5710380e 100644 --- a/udev/udevadm-test.c +++ b/udev/udevadm-test.c @@ -38,6 +38,7 @@ int udevadm_test(struct udev *udev, int argc, char *argv[]) struct udev_event *event; struct udev_device *dev; struct udev_rules *rules = NULL; + struct udev_list_entry *entry; int err; int rc = 0; @@ -115,9 +116,10 @@ int udevadm_test(struct udev *udev, int argc, char *argv[]) if (udev_device_get_event_timeout(dev) >= 0) info(udev, "custom event timeout: %i\n", udev_device_get_event_timeout(dev)); - if (err == 0 && !event->ignore_device && udev_get_run(udev)) { - struct udev_list_entry *entry; + udev_list_entry_foreach(entry, udev_device_get_properties_list_entry(dev)) + info(udev, "%s=%s\n", udev_list_entry_get_name(entry), udev_list_entry_get_value(entry)); + if (err == 0 && !event->ignore_device && udev_get_run(udev)) { udev_list_entry_foreach(entry, udev_list_get_entry(&event->run_list)) { char program[UTIL_PATH_SIZE]; |