syscalls: generate proper name
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 18 Sep 2023 18:59:39 +0000 (21:59 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Mon, 18 Sep 2023 18:59:39 +0000 (21:59 +0300)
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])))