diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-10-30 08:40:26 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-30 13:02:26 +0100 |
commit | a16ab14eb7a92bfebf71a8a9185c749de86851f4 (patch) | |
tree | 2cc21f5671a29197ef2e98f39ec66d19efecaf70 /scripts/get_abi.pl | |
parent | c7ba333426bcf4d7330d3a0a768e8048a82e4cc7 (diff) | |
download | linux-stable-a16ab14eb7a92bfebf71a8a9185c749de86851f4.tar.gz linux-stable-a16ab14eb7a92bfebf71a8a9185c749de86851f4.tar.bz2 linux-stable-a16ab14eb7a92bfebf71a8a9185c749de86851f4.zip |
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>
Diffstat (limited to 'scripts/get_abi.pl')
-rwxr-xr-x | scripts/get_abi.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 1d1408fad130..e5a5588a8639 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -371,6 +371,14 @@ sub output_rest { print "- :ref:`$content <$label>`\n\n"; } } + + if (defined($data{$what}->{users})) { + my $users = $data{$what}->{users}; + + $users =~ s/\n/\n\t/g; + printf "Users:\n\t%s\n\n", $users if ($users ne ""); + } + } } |