From 50cd8e2558bbe43750db8b366c293e0b3c774a7e Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Mon, 9 Aug 2021 16:29:50 +0800 Subject: [PATCH] board-inspector: fix the creation of packages The PackageElementList builder takes variadic arguments, each of which is an element of the package to be created, not a single argument being the list of the elements. This patch fix the call to PackageElementList in build_value() where the wrong type of argument was passed. Tracked-On: #6287 Signed-off-by: Junjie Mao --- misc/config_tools/board_inspector/acpiparser/aml/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/board_inspector/acpiparser/aml/builder.py b/misc/config_tools/board_inspector/acpiparser/aml/builder.py index 543af45f7..6e8149860 100644 --- a/misc/config_tools/board_inspector/acpiparser/aml/builder.py +++ b/misc/config_tools/board_inspector/acpiparser/aml/builder.py @@ -116,7 +116,7 @@ def build_value(value): return DefPackage( PkgLength(), len(value.elements), - PackageElementList(elements)) + PackageElementList(*elements)) elif isinstance(value, (str, datatypes.String)): if isinstance(value, str): return String(value)