|
|
@@ -2294,7 +2294,7 @@ wasm_module_new(wasm_store_t *store, const wasm_byte_vec_t *binary)
|
|
|
(uint8 *)module_ex->binary->data, (uint32)module_ex->binary->size,
|
|
|
error_buf, (uint32)sizeof(error_buf));
|
|
|
if (!(module_ex->module_comm_rt)) {
|
|
|
- LOG_ERROR(error_buf);
|
|
|
+ LOG_ERROR("%s", error_buf);
|
|
|
goto free_vec;
|
|
|
}
|
|
|
|
|
|
@@ -2367,7 +2367,7 @@ wasm_module_validate(wasm_store_t *store, const wasm_byte_vec_t *binary)
|
|
|
}
|
|
|
else {
|
|
|
ret = false;
|
|
|
- LOG_VERBOSE(error_buf);
|
|
|
+ LOG_VERBOSE("%s", error_buf);
|
|
|
}
|
|
|
|
|
|
return ret;
|
|
|
@@ -3359,7 +3359,7 @@ wasm_func_call(const wasm_func_t *func, const wasm_val_vec_t *params,
|
|
|
wasm_runtime_set_exception(func->inst_comm_rt, NULL);
|
|
|
if (!wasm_runtime_call_wasm(exec_env, func_comm_rt, argc, argv)) {
|
|
|
if (wasm_runtime_get_exception(func->inst_comm_rt)) {
|
|
|
- LOG_DEBUG(wasm_runtime_get_exception(func->inst_comm_rt));
|
|
|
+ LOG_DEBUG("%s", wasm_runtime_get_exception(func->inst_comm_rt));
|
|
|
goto failed;
|
|
|
}
|
|
|
}
|
|
|
@@ -5044,7 +5044,7 @@ failed:
|
|
|
*trap = wasm_trap_new(store, &message);
|
|
|
wasm_byte_vec_delete(&message);
|
|
|
}
|
|
|
- LOG_DEBUG(error_buf);
|
|
|
+ LOG_DEBUG("%s", error_buf);
|
|
|
wasm_instance_delete_internal(instance);
|
|
|
return NULL;
|
|
|
}
|