syscall-tables: add missing preposition and fix file name path

I added an extension in 1f6f8cc803 but
forgot to fix the consumer script.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-02-12 18:51:27 +01:00
parent e81fd9dd23
commit b85ee926a8
2 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ def parse_syscall_table(filename):
yield items[0], int(items[1])
def parse_syscall_tables(filenames):
return {filename.split('-')[-1]: parse_syscall_table(filename)
return {filename.split('-')[-1][:-4]: parse_syscall_table(filename)
for filename in filenames}
DEF_TEMPLATE = '''\
@@ -78,7 +78,7 @@ DEF_TEMPLATE = '''\
# warning "{syscall}() syscall number is unknown for your architecture"
# endif
/* may be (invalid) negative number due to libseccomp, see PR 13319 */
/* may be an (invalid) negative number due to libseccomp, see PR 13319 */
# if defined __NR_{syscall} && __NR_{syscall} >= 0
# if defined systemd_NR_{syscall}
assert_cc(__NR_{syscall} == systemd_NR_{syscall});