summaryrefslogtreecommitdiff
path: root/udev/lib/test-libudev.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/lib/test-libudev.c')
-rw-r--r--udev/lib/test-libudev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c
index be25d61121..db08d4845f 100644
--- a/udev/lib/test-libudev.c
+++ b/udev/lib/test-libudev.c
@@ -228,9 +228,9 @@ static int test_monitor(struct udev *udev)
printf("no socket\n");
return -1;
}
- if (udev_monitor_filter_add_match_subsystem(udev_monitor, "block") < 0 ||
- udev_monitor_filter_add_match_subsystem(udev_monitor, "tty") < 0 ||
- udev_monitor_filter_add_match_subsystem(udev_monitor, "usb") < 0) {
+ if (udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "block", NULL) < 0 ||
+ udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "tty", NULL) < 0 ||
+ udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "usb", "usb_device") < 0) {
printf("filter failed\n");
return -1;
}