From 54bca55ae5212002f8b5178f3d427cb4f54be233 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 14 Jun 2023 13:32:15 +0200 Subject: cooker: Fix up debugging messages for "return" Signed-off-by: Stefano Brivio --- cooker/emit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cooker/emit.c') 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; -- cgit v1.2.3