syscalls: generate proper name
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 18 Sep 2023 18:59:39 +0000 (21:59 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:20 +0000 (19:26 +0000)
src/openpower/syscalls/__main__.py

index 6cec7fb31ff21d830061edc4e97ca3d6ec270d82..716c9c0d417c42d12b645a842210976262cdd54f 100644 (file)
@@ -60,7 +60,9 @@ def collect_sysargs(tree):
                     match = match.group(2).replace("\t", "").replace("\n", "")
                     (name, *arguments) = map(str.strip, match.split(","))
                     if compat:
-                        name = f"compat_{name}"
+                        name = f"compat_sys_{name}"
+                    else:
+                        name = f"sys_{name}"
                     yield (name, dict(zip(arguments[1::2], arguments[0::2])))