Skip to content

Commit 309a421

Browse files
committed
shared/seccomp-util: use the same error message for the same condition
We were calling seccomp_syscall_resolve_name three times and using a slightly different error message in each of the cases.
1 parent 2331c02 commit 309a421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/seccomp-util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ int seccomp_parse_syscall_filter(
12421242
return -EINVAL;
12431243

12441244
log_syntax(unit, FLAGS_SET(flags, SECCOMP_PARSE_LOG) ? LOG_WARNING : LOG_DEBUG, filename, line, 0,
1245-
"Failed to parse system call, ignoring: %s", name);
1245+
"System call %s is not known, ignoring.", name);
12461246
return 0;
12471247
}
12481248

@@ -2000,7 +2000,7 @@ int seccomp_filter_set_add(Hashmap *filter, bool add, const SyscallFilterSet *se
20002000

20012001
id = seccomp_syscall_resolve_name(i);
20022002
if (id == __NR_SCMP_ERROR) {
2003-
log_debug("Couldn't resolve system call, ignoring: %s", i);
2003+
log_debug("System call %s is not known, ignoring.", i);
20042004
continue;
20052005
}
20062006

0 commit comments

Comments
 (0)