diff --git a/udev/udevadm-monitor.c b/udev/udevadm-monitor.c index 4063c48303c..d136c6070ab 100644 --- a/udev/udevadm-monitor.c +++ b/udev/udevadm-monitor.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2009 Kay Sievers + * Copyright (C) 2004-2010 Kay Sievers * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -111,7 +111,7 @@ int udevadm_monitor(struct udev *udev, int argc, char *argv[]) char *devtype; util_strscpy(subsys, sizeof(subsys), optarg); - devtype = strchr(subsys, ':'); + devtype = strchr(subsys, '/'); if (devtype != NULL) { devtype[0] = '\0'; devtype++; @@ -121,10 +121,10 @@ int udevadm_monitor(struct udev *udev, int argc, char *argv[]) } case 'h': printf("Usage: udevadm monitor [--property] [--kernel] [--udev] [--help]\n" - " --property print the event properties\n" - " --kernel print kernel uevents\n" - " --udev print udev events\n" - " --subsystem-match= filter events\n" + " --property print the event properties\n" + " --kernel print kernel uevents\n" + " --udev print udev events\n" + " --subsystem-match= filter events by subsystem\n" " --help\n\n"); default: goto out; diff --git a/udev/udevadm.xml b/udev/udevadm.xml index ad492494a11..fa1742badae 100644 --- a/udev/udevadm.xml +++ b/udev/udevadm.xml @@ -349,6 +349,12 @@ Also print the properties of the event. + + + + Filter events by subsystem[/devtype]. Only udev events with a matching subsystem value will pass. + +