diff --git a/core/iwasm/common/wasm_application.c b/core/iwasm/common/wasm_application.c index 7bbd43d16..f476f0304 100644 --- a/core/iwasm/common/wasm_application.c +++ b/core/iwasm/common/wasm_application.c @@ -878,7 +878,9 @@ execute_func(WASMModuleInstanceCommon *module_inst, const char *name, if (j < (uint32)(type->result_count - 1)) os_printf(","); } - os_printf("\n"); + if (type->result_count > 0) { + os_printf("\n"); + } #if WASM_ENABLE_GC != 0 for (j = 0; j < num_local_ref_pushed; j++) {