doc: fix udev(7) documentation about ATTR{} and SYSCTL{}
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 23 Aug 2018 20:20:18 +0000 (16:20 -0400)
committerFilipe Brandenburger <filbranden@google.com>
Thu, 23 Aug 2018 21:47:43 +0000 (14:47 -0700)
Without this fix, udev(7) munges the two items together, like so:

       ATTR{filename}, SYSCTL{kernel parameter}
           Match sysfs attribute values of the event device. Trailing
           whitespace in the attribute values is ignored unless the specified
           match value itself contains trailing whitespace.  Match a kernel
           parameter value.

You're not allowed to have a <term> element after a <listitem> element within a
<varlistentry>.

xmllint complains:

    udev.xml:192: element varlistentry: validity error : Element varlistentry content does not follow the DTD, expecting (term+ , listitem), got (term listitem term listitem )

man/udev.xml

index adbb4b4..08fedfc 100644 (file)
             value itself contains trailing whitespace.
             </para>
           </listitem>
+        </varlistentry>
+        <varlistentry>
           <term><varname>SYSCTL{<replaceable>kernel parameter</replaceable>}</varname></term>
           <listitem>
             <para>Match a kernel parameter value.