diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-01-18 17:09:18 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-01-23 15:22:16 +0900 |
commit | 5b3b0733c96b54df8bea040ccc13856a014c173f (patch) | |
tree | 4bfc0ba710af4a44a30477b87026d456c546461c /src/udev/udevadm-trigger.c | |
parent | e022bf664c79932de2ac217ca6d2c100823674c0 (diff) | |
download | systemd-5b3b0733c96b54df8bea040ccc13856a014c173f.tar.gz systemd-5b3b0733c96b54df8bea040ccc13856a014c173f.tar.bz2 systemd-5b3b0733c96b54df8bea040ccc13856a014c173f.zip |
udevadm: trigger: support multiple arguments
Closes #6098.
Diffstat (limited to 'src/udev/udevadm-trigger.c')
-rw-r--r-- | src/udev/udevadm-trigger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/udevadm-trigger.c b/src/udev/udevadm-trigger.c index 95329469e3..2a658158e6 100644 --- a/src/udev/udevadm-trigger.c +++ b/src/udev/udevadm-trigger.c @@ -256,7 +256,7 @@ int trigger_main(int argc, char *argv[], void *userdata) { if (r < 0) return log_error_errno(r, "Failed to open the device '%s': %m", optarg); - r = sd_device_enumerator_add_match_parent(e, dev); + r = device_enumerator_add_match_parent_incremental(e, dev); if (r < 0) return log_error_errno(r, "Failed to add parent match '%s': %m", optarg); break; @@ -272,7 +272,7 @@ int trigger_main(int argc, char *argv[], void *userdata) { if (r < 0) return log_error_errno(r, "Failed to open the device '%s': %m", optarg); - r = sd_device_enumerator_add_match_parent(e, dev); + r = device_enumerator_add_match_parent_incremental(e, dev); if (r < 0) return log_error_errno(r, "Failed to add parent match '%s': %m", optarg); break; @@ -324,7 +324,7 @@ int trigger_main(int argc, char *argv[], void *userdata) { if (r < 0) return log_error_errno(r, "Failed to open the device '%s': %m", argv[optind]); - r = sd_device_enumerator_add_match_parent(e, dev); + r = device_enumerator_add_match_parent_incremental(e, dev); if (r < 0) return log_error_errno(r, "Failed to add parent match '%s': %m", argv[optind]); } |