diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | scripts/kernel-doc | 13 |
2 files changed, 10 insertions, 7 deletions
@@ -1,5 +1,9 @@ 2008-11-25 Will Cohen <wcohen@redhat.com> + * scripts/kernel-doc: Clean up SystemTap function formatting. + +2008-11-25 Will Cohen <wcohen@redhat.com> + * scripts/kernel-doc: Make executable. 2008-11-25 Will Cohen <wcohen@redhat.com> diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 1ed34323..dd18ed69 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1053,21 +1053,20 @@ sub output_sfunction_xml(%) { print "<refsynopsisdiv>\n"; print " <title>Synopsis</title>\n"; print " <programlisting>\n"; - print " ".$args{'sfunction'}.":"; - print $args{'functiontype'}."(\n"; + print " ".$args{'sfunction'}; + if ($args{'functiontype'}) { print ":".$args{'functiontype'} } + print "("; $count = $#{$args{'parameterlist'}}; if ($count >= 0) { foreach $parameter (@{$args{'parameterlist'}}) { $type = $args{'parametertypes'}{$parameter}; - print " ".$parameter.":".$type; + print $parameter.":".$type; $count -= 1; - if ($count >= 0) { print ",\n"; } + if ($count >= 0) { print ","; } } - } else { - print " "; } - print "\n );\n</programlisting>\n"; + print ")\n</programlisting>\n"; print "</refsynopsisdiv>\n"; # print parameters |