From 4ae82dcc8a19149dc61b0f5a502b016ba707c4cf 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