summaryrefslogtreecommitdiffstats
path: root/scripts/get_abi.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2025-02-10 11:18:03 +0100
committerJonathan Corbet <corbet@lwn.net>2025-02-10 11:19:56 -0700
commit9bec7870c64c00983773cfddab8d6a037f7767f3 (patch)
tree97ec998c64312f2bc8fbdd4d1a499fbaa8216198 /scripts/get_abi.py
parentc67c3fbdd917884e38a366c38717c9f769075c15 (diff)
downloadlinux-9bec7870c64c00983773cfddab8d6a037f7767f3.tar.gz
linux-9bec7870c64c00983773cfddab8d6a037f7767f3.tar.bz2
linux-9bec7870c64c00983773cfddab8d6a037f7767f3.zip
scripts/lib/abi/abi_parser.py: use an interactor for ReST output
Instead of printing all results line per line, use an interactor to return each variable as a separate message. This won't change much when using it via command line, but it will help Sphinx integration by providing an interactor that could be used there to handle ABI symbol by symbol. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/e3c94b8cdfd5e955aa19a703921f364a89089634.1739182025.git.mchehab+huawei@kernel.org
Diffstat (limited to 'scripts/get_abi.py')
-rwxr-xr-xscripts/get_abi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/get_abi.py b/scripts/get_abi.py
index 30439f21fdd0..93b973bc07ed 100755
--- a/scripts/get_abi.py
+++ b/scripts/get_abi.py
@@ -62,8 +62,9 @@ class AbiRest:
parser = AbiParser(args.dir, debug=args.debug)
parser.parse_abi()
parser.check_issues()
- parser.print_data(args.enable_lineno, args.raw, not args.no_file)
+ for msg in parser.doc(args.enable_lineno, args.raw, not args.no_file):
+ print(msg)
class AbiValidate:
"""Initialize an argparse subparser for ABI validation"""