From ad27091ea159b284c1bda2b089f670b83e5681a7 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 18 Sep 2023 22:38:43 +0300 Subject: [PATCH] syscalls: refactor dispatcher call arguments --- src/openpower/syscalls/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openpower/syscalls/__init__.py b/src/openpower/syscalls/__init__.py index 28a05cc7..abb06db1 100644 --- a/src/openpower/syscalls/__init__.py +++ b/src/openpower/syscalls/__init__.py @@ -55,9 +55,9 @@ class Dispatcher: return super().__init__() def __getattr__(self, identifier): - return functools.partial(self.__call__, identifier=identifier) + return functools.partial(self.__call__, identifier) - def __call__(self, *arguments, identifier=None): + def __call__(self, identifier, *arguments): if isinstance(identifier, int): identifier = str(identifier) if identifier not in self.__guest: -- 2.30.2