From aacb2f8db25358e2526c82b4ef1814255111e96a Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 22 Jan 2025 00:05:41 +0100 Subject: [PATCH] Correcting logic error --- user/usys.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/usys.py b/user/usys.py index 677c5b8..f17f05d 100755 --- a/user/usys.py +++ b/user/usys.py @@ -10,8 +10,8 @@ template = """ def genstub(syscall: str): - if not 3 >= len(syscall) <= 15: - raise ValueError("Syscall {} is too short/long!".format(syscall[:35])) + if not 3 <= len(syscall) <= 15: + raise ValueError("Syscall {name} is too short/long!".format(name=syscall[:35])) return template.format(name=syscall)