aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/get_abi.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <[email protected]>2025-02-10 10:18:03 +0000
committerJonathan Corbet <[email protected]>2025-02-10 18:19:56 +0000
commit9bec7870c64c00983773cfddab8d6a037f7767f3 (patch)
tree97ec998c64312f2bc8fbdd4d1a499fbaa8216198 /scripts/get_abi.py
parentscripts/lib/abi/abi_parser.py: optimize parse_abi() function (diff)
downloadkernel-9bec7870c64c00983773cfddab8d6a037f7767f3.tar.gz
kernel-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 <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> 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"""