From 309a4212cf53193051b56e194200d54db6edeb1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 1 Dec 2023 19:04:27 +0100 Subject: [PATCH] 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. --- src/shared/seccomp-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c index 95c704d..d85275d 100644 --- a/src/shared/seccomp-util.c +++ b/src/shared/seccomp-util.c @@ -1242,7 +1242,7 @@ int seccomp_parse_syscall_filter( return -EINVAL; log_syntax(unit, FLAGS_SET(flags, SECCOMP_PARSE_LOG) ? LOG_WARNING : LOG_DEBUG, filename, line, 0, - "Failed to parse system call, ignoring: %s", name); + "System call %s is not known, ignoring.", name); return 0; } @@ -2000,7 +2000,7 @@ int seccomp_filter_set_add(Hashmap *filter, bool add, const SyscallFilterSet *se id = seccomp_syscall_resolve_name(i); if (id == __NR_SCMP_ERROR) { - log_debug("Couldn't resolve system call, ignoring: %s", i); + log_debug("System call %s is not known, ignoring.", i); continue; } -- 2.7.4