summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2008-11-25 11:18:08 -0500
committerWilliam Cohen <wcohen@redhat.com>2008-11-25 11:18:08 -0500
commit87d8922d2656d3a321cdc30790c3d93d618a6ebd (patch)
treeb834e22673ff030327aab5047e9b354d08cda183 /scripts
parent689a5cf030fcea346f302260a3414ad15ad6120f (diff)
downloadsystemtap-steved-87d8922d2656d3a321cdc30790c3d93d618a6ebd.tar.gz
systemtap-steved-87d8922d2656d3a321cdc30790c3d93d618a6ebd.tar.xz
systemtap-steved-87d8922d2656d3a321cdc30790c3d93d618a6ebd.zip
Clean up kernel-doc SystemTap function formatting.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kernel-doc13
1 files changed, 6 insertions, 7 deletions
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