aboutgitcodelistschat:MatrixIRC
path: root/cooker/emit.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-06-14 13:32:15 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-06-14 13:32:15 +0200
commit54bca55ae5212002f8b5178f3d427cb4f54be233 (patch)
tree8d822634eb2ce1281ab6bce8824a8302b093f2a1 /cooker/emit.c
parent920081a68f0f1f12de37c3ad0e3727e783b71ac7 (diff)
downloadseitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.gz
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.bz2
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.lz
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.xz
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.zst
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.zip
cooker: Fix up debugging messages for "return"
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'cooker/emit.c')
-rw-r--r--cooker/emit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cooker/emit.c b/cooker/emit.c
index a257398..1a7f3a9 100644
--- a/cooker/emit.c
+++ b/cooker/emit.c
@@ -332,12 +332,12 @@ void emit_cmp_field(struct gluten_ctx *g, enum op_cmp_type cmp,
/**
* emit_return() - Emit OP_RETURN instruction: return value
* @g: gluten context
- * @v: offset of the return value
- * @error: error value
- * @cont if the filtered syscall needs to be executed
+ * @v: Offset of return value
+ * @error: Offset of error value
+ * @cont: Continue syscall execution, if true
*/
-void emit_return(struct gluten_ctx *g, struct gluten_offset v, int32_t error,
- bool cont)
+void emit_return(struct gluten_ctx *g, struct gluten_offset v,
+ struct gluten_offset error, bool cont)
{
struct op *op = (struct op *)gluten_ptr(&g->g, g->ip);
struct op_return *ret = &op->op.ret;