aboutgitcodelistschat:MatrixIRC
path: root/cooker/filter.c
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-09-01 10:14:11 +0200
committerAlice Frosi <afrosi@redhat.com>2023-09-01 10:14:11 +0200
commitaecd6adbd2f5ce12437215fe2e64e004d28db86b (patch)
tree86bbdb3ee0f4e9d3ab6c56805785cc69f9d6557a /cooker/filter.c
parent75738f0ac9cde3b1aaebd6d700cb9329a419555e (diff)
downloadseitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar
seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.gz
seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.bz2
seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.lz
seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.xz
seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.zst
seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.zip
cooker: print syscall name instead of number
Diffstat (limited to 'cooker/filter.c')
-rw-r--r--cooker/filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cooker/filter.c b/cooker/filter.c
index 4a06111..e0c8081 100644
--- a/cooker/filter.c
+++ b/cooker/filter.c
@@ -126,9 +126,9 @@ void filter_add_check(struct bpf_field *field)
check = &entry->field[entry_check_count(entry)];
- debug(" BPF: inserting check at %i for entry %i, syscall %lu",
+ debug(" BPF: inserting check at %i for entry %i, syscall %s",
entry_check_count(entry), call_entry_count(current_nr),
- current_nr);
+ syscall_name_str[current_nr]);
memcpy(check, field, sizeof(*field));
}