From: Zbigniew Jędrzejewski-Szmek Date: Fri, 1 Dec 2023 18:04:27 +0000 (+0100) Subject: shared/seccomp-util: use the same error message for the same condition X-Git-Tag: v255~19^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=309a4212cf53193051b56e194200d54db6edeb1e;p=platform%2Fupstream%2Fsystemd.git 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. --- 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; }