Commit 5668604a authored by Jani Nikula's avatar Jani Nikula

kernel-doc: remove old debug cruft from dump_section()

No functional changes.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 8569de68
...@@ -529,21 +529,18 @@ sub dump_section { ...@@ -529,21 +529,18 @@ sub dump_section {
my $contents = join "\n", @_; my $contents = join "\n", @_;
if ($name =~ m/$type_param/) { if ($name =~ m/$type_param/) {
# print STDERR "parameter def '$1' = '$contents'\n";
$name = $1; $name = $1;
$parameterdescs{$name} = $contents; $parameterdescs{$name} = $contents;
$sectcheck = $sectcheck . $name . " "; $sectcheck = $sectcheck . $name . " ";
$parameterdesc_start_lines{$name} = $new_start_line; $parameterdesc_start_lines{$name} = $new_start_line;
$new_start_line = 0; $new_start_line = 0;
} elsif ($name eq "@\.\.\.") { } elsif ($name eq "@\.\.\.") {
# print STDERR "parameter def '...' = '$contents'\n";
$name = "..."; $name = "...";
$parameterdescs{$name} = $contents; $parameterdescs{$name} = $contents;
$sectcheck = $sectcheck . $name . " "; $sectcheck = $sectcheck . $name . " ";
$parameterdesc_start_lines{$name} = $new_start_line; $parameterdesc_start_lines{$name} = $new_start_line;
$new_start_line = 0; $new_start_line = 0;
} else { } else {
# print STDERR "other section '$name' = '$contents'\n";
if (defined($sections{$name}) && ($sections{$name} ne "")) { if (defined($sections{$name}) && ($sections{$name} ne "")) {
print STDERR "${file}:$.: warning: duplicate section name '$name'\n"; print STDERR "${file}:$.: warning: duplicate section name '$name'\n";
++$warnings; ++$warnings;
......
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