diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-03-10 15:00:00 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-03-10 15:00:00 +0100 |
commit | a00ff5db021b50864ba50cce15865bca2d52f91f (patch) | |
tree | 9a1c1378fe28f8393e745c9fd794ff3873cf8259 /udev/udevadm-monitor.c | |
parent | fbb31cd6e10fe66d2da781db0ba9a8d671a4c6aa (diff) |
udevadm: monitor - use / as separator in --subsystem-match=subsystem[/devtype]
Diffstat (limited to 'udev/udevadm-monitor.c')
-rw-r--r-- | udev/udevadm-monitor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/udev/udevadm-monitor.c b/udev/udevadm-monitor.c index 4063c48303..d136c6070a 100644 --- a/udev/udevadm-monitor.c +++ b/udev/udevadm-monitor.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2009 Kay Sievers <kay.sievers@vrfy.org> + * Copyright (C) 2004-2010 Kay Sievers <kay.sievers@vrfy.org> * * 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=<subsystem> filter events\n" + " --property print the event properties\n" + " --kernel print kernel uevents\n" + " --udev print udev events\n" + " --subsystem-match=<subsystem[/devtype]> filter events by subsystem\n" " --help\n\n"); default: goto out; |