aboutgitcodelistschat:MatrixIRC
path: root/cooker/emit.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/emit.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/emit.c')
-rw-r--r--cooker/emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cooker/emit.c b/cooker/emit.c
index ce325f1..efe70eb 100644
--- a/cooker/emit.c
+++ b/cooker/emit.c
@@ -119,7 +119,7 @@ void emit_call(struct gluten_ctx *g, struct context_desc *cdesc, long nr,
memcpy(desc->args, offset, sizeof(struct gluten_offset) * count);
desc->args[count] = ret_offset;
- debug(" %i: OP_CALL: %i, arguments:", g->ip.offset, nr);
+ debug(" %i: OP_CALL: %s, arguments:", g->ip.offset, syscall_name_str[nr]);
for (i = 0; i < count; i++) {
debug("\t%i: %s %s%i", i, gluten_offset_name[offset[i].type],
is_ptr[i] ? "*" : "", offset[i].offset);