From 79957c9662989782b78bedc540c14a5a424a469e Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 23 Aug 2017 06:58:47 -0400 Subject: cleanup --- src/fseccomp/syscall.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/fseccomp') diff --git a/src/fseccomp/syscall.c b/src/fseccomp/syscall.c index 8afa3f63d..8c18b2d14 100644 --- a/src/fseccomp/syscall.c +++ b/src/fseccomp/syscall.c @@ -567,8 +567,16 @@ void syscalls_in_list(const char *list, const char *slist, int fd, char **prelis sl.prelist = NULL; sl.postlist = NULL; syscall_check_list(list, syscall_in_list, 0, 0, &sl); - if (!arg_quiet) - printf("list in: %s, check list: %s prelist: %s, postlist: %s\n", list, sl.slist, sl.prelist, sl.postlist); + if (!arg_quiet) { + printf("Seccomp list in: %s,", list); + if (sl.slist) + printf(" check list: %s,", sl.slist); + if (sl.prelist) + printf(" prelist: %s,", sl.prelist); + if (sl.postlist) + printf(" postlist: %s", sl.postlist); + printf("\n"); + } *prelist = sl.prelist; *postlist = sl.postlist; } -- cgit v1.2.3-54-g00ecf