Commit f47634b2 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds
Browse files

[PATCH] kernel-doc: make man/text mode function output same

Make output of function descriptions in text mode match contents of 'man'
mode by adding Name: plus function-short-description ("purpose") and
changing Function: to Synopsis:.
Signed-off-by: default avatarRandy Dunlap <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent faab17ba
...@@ -1119,7 +1119,10 @@ sub output_function_text(%) { ...@@ -1119,7 +1119,10 @@ sub output_function_text(%) {
my %args = %{$_[0]}; my %args = %{$_[0]};
my ($parameter, $section); my ($parameter, $section);
print "Function:\n\n"; print "Name:\n\n";
print $args{'function'}." - ".$args{'purpose'}."\n";
print "\nSynopsis:\n\n";
my $start=$args{'functiontype'}." ".$args{'function'}." ("; my $start=$args{'functiontype'}." ".$args{'function'}." (";
print $start; print $start;
my $count = 0; my $count = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment