@@ -2294,7 +2294,7 @@ wasm_module_new(wasm_store_t *store, const wasm_byte_vec_t *binary)
22942294 (uint8 * )module_ex -> binary -> data , (uint32 )module_ex -> binary -> size ,
22952295 error_buf , (uint32 )sizeof (error_buf ));
22962296 if (!(module_ex -> module_comm_rt )) {
2297- LOG_ERROR (error_buf );
2297+ LOG_ERROR ("%s" , error_buf );
22982298 goto free_vec ;
22992299 }
23002300
@@ -2367,7 +2367,7 @@ wasm_module_validate(wasm_store_t *store, const wasm_byte_vec_t *binary)
23672367 }
23682368 else {
23692369 ret = false;
2370- LOG_VERBOSE (error_buf );
2370+ LOG_VERBOSE ("%s" , error_buf );
23712371 }
23722372
23732373 return ret ;
@@ -3359,7 +3359,7 @@ wasm_func_call(const wasm_func_t *func, const wasm_val_vec_t *params,
33593359 wasm_runtime_set_exception (func -> inst_comm_rt , NULL );
33603360 if (!wasm_runtime_call_wasm (exec_env , func_comm_rt , argc , argv )) {
33613361 if (wasm_runtime_get_exception (func -> inst_comm_rt )) {
3362- LOG_DEBUG (wasm_runtime_get_exception (func -> inst_comm_rt ));
3362+ LOG_DEBUG ("%s" , wasm_runtime_get_exception (func -> inst_comm_rt ));
33633363 goto failed ;
33643364 }
33653365 }
@@ -5044,7 +5044,7 @@ wasm_instance_new_with_args(wasm_store_t *store, const wasm_module_t *module,
50445044 * trap = wasm_trap_new (store , & message );
50455045 wasm_byte_vec_delete (& message );
50465046 }
5047- LOG_DEBUG (error_buf );
5047+ LOG_DEBUG ("%s" , error_buf );
50485048 wasm_instance_delete_internal (instance );
50495049 return NULL ;
50505050}
0 commit comments