summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-07-15 19:25:19 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-07-15 17:18:22 -0400
commite7854c46be0470e5372dba2712ca5cc8dd0e26f7 (patch)
tree65ccc1a5165ec33f5e13461868866fa15730631f /src
parentceabfb889d7e9dcde1c8a8ab811c40a73d88f200 (diff)
downloadsystemd-e7854c46be0470e5372dba2712ca5cc8dd0e26f7.tar.gz
shared/seccomp-util: add parentheses and no. after syscall name
"Failed to add rule for system call access, ignoring: Numerical argument out of domain" is confusing. Make that "... system call access() / 238". (cherry picked from commit 977dc6ca5acb8069a2966ec63e7378576bc2ca51)
Diffstat (limited to 'src')
-rw-r--r--src/shared/seccomp-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c
index 36843d4bf5..476bff1260 100644
--- a/src/shared/seccomp-util.c
+++ b/src/shared/seccomp-util.c
@@ -692,7 +692,7 @@ static int seccomp_add_syscall_filter_set(
r = seccomp_rule_add_exact(seccomp, action, id, 0);
if (r < 0)
/* If the system call is not known on this architecture, then that's fine, let's ignore it */
- log_debug_errno(r, "Failed to add rule for system call %s, ignoring: %m", sys);
+ log_debug_errno(r, "Failed to add rule for system call %s() / %d, ignoring: %m", sys, id);
}
}
@@ -761,7 +761,7 @@ int seccomp_load_syscall_filter_set_raw(uint32_t default_action, Set* set, uint3
_cleanup_free_ char *n = NULL;
n = seccomp_syscall_resolve_num_arch(arch, PTR_TO_INT(id) - 1);
- log_debug_errno(r, "Failed to add rule for system call %s, ignoring: %m", strna(n));
+ log_debug_errno(r, "Failed to add rule for system call %s() / %d, ignoring: %m", strna(n), PTR_TO_INT(id) - 1);
}
}