Skip to content

Commit a16ab14

Browse files
mchehabgregkh
authored andcommitted
scripts: get_abi.pl: output users in ReST format
Right now, the script only outputs Users on search. Print it also in ReST format. Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/83def2a692c4c678f21ee6e76b66a54d2be1e796.1604042072.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c7ba333 commit a16ab14

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/get_abi.pl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,14 @@ sub output_rest {
371371
print "- :ref:`$content <$label>`\n\n";
372372
}
373373
}
374+
375+
if (defined($data{$what}->{users})) {
376+
my $users = $data{$what}->{users};
377+
378+
$users =~ s/\n/\n\t/g;
379+
printf "Users:\n\t%s\n\n", $users if ($users ne "");
380+
}
381+
374382
}
375383
}
376384

0 commit comments

Comments
 (0)