mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 23:51:28 +03:00
udevadm: monitor - use / as separator in --subsystem-match=subsystem[/devtype]
This commit is contained in:
parent
fbb31cd6e1
commit
a00ff5db02
@ -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
|
* 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
|
* 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;
|
char *devtype;
|
||||||
|
|
||||||
util_strscpy(subsys, sizeof(subsys), optarg);
|
util_strscpy(subsys, sizeof(subsys), optarg);
|
||||||
devtype = strchr(subsys, ':');
|
devtype = strchr(subsys, '/');
|
||||||
if (devtype != NULL) {
|
if (devtype != NULL) {
|
||||||
devtype[0] = '\0';
|
devtype[0] = '\0';
|
||||||
devtype++;
|
devtype++;
|
||||||
@ -124,7 +124,7 @@ int udevadm_monitor(struct udev *udev, int argc, char *argv[])
|
|||||||
" --property print the event properties\n"
|
" --property print the event properties\n"
|
||||||
" --kernel print kernel uevents\n"
|
" --kernel print kernel uevents\n"
|
||||||
" --udev print udev events\n"
|
" --udev print udev events\n"
|
||||||
" --subsystem-match=<subsystem> filter events\n"
|
" --subsystem-match=<subsystem[/devtype]> filter events by subsystem\n"
|
||||||
" --help\n\n");
|
" --help\n\n");
|
||||||
default:
|
default:
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -349,6 +349,12 @@
|
|||||||
<para>Also print the properties of the event.</para>
|
<para>Also print the properties of the event.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--subsystem-match=<replaceable>string[/string]</replaceable></option></term>
|
||||||
|
<listitem>
|
||||||
|
<para>Filter events by subsystem[/devtype]. Only udev events with a matching subsystem value will pass.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--help</option></term>
|
<term><option>--help</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
Loading…
Reference in New Issue
Block a user