@@ -922,7 +922,7 @@ bool ModelLoader::init_from_gguf_file(const std::string& file_path, const std::s
922922 size_t offset = data_offset + gguf_get_tensor_offset (ctx_gguf_, i);
923923
924924 if (i==0 && starts_with (name,prefix)){
925- LOG_WARN (" Tensors have built-in %s prefix.\n " , prefix);
925+ LOG_WARN (" Tensors have built-in %s prefix.\n " , prefix. c_str () );
926926 if (prefix == " model.diffusion_model." ){
927927 // the user probably used `--diffusion-model` instead of `-m`
928928 LOG_WARN (" Try using `-m`or `--model` instead of `--diffusion-model`\n " );
@@ -1061,7 +1061,7 @@ bool ModelLoader::init_from_safetensors_file(const std::string& file_path, const
10611061 }
10621062
10631063 if (i++==0 && starts_with (name,prefix)){
1064- LOG_WARN (" Tensors have built-in %s prefix.\n " , prefix);
1064+ LOG_WARN (" Tensors have built-in %s prefix.\n " , prefix. c_str () );
10651065 if (prefix == " model.diffusion_model." ){
10661066 // the user probably used `--diffusion-model` instead of `-m`
10671067 LOG_WARN (" Try using `-m`or `--model` instead of `--diffusion-model`\n " );
@@ -1452,7 +1452,7 @@ bool ModelLoader::init_from_ckpt_file(const std::string& file_path, const std::s
14521452 std::string name = zip_entry_name (zip);
14531453 size_t pos = name.find (" data.pkl" );
14541454 if (i==0 && starts_with (name,prefix)){
1455- LOG_WARN (" Tensors have built-in %s prefix.\n " , prefix);
1455+ LOG_WARN (" Tensors have built-in %s prefix.\n " , prefix. c_str () );
14561456 if (prefix == " model.diffusion_model." ){
14571457 // the user probably used `--diffusion-model` instead of `-m`
14581458 LOG_WARN (" Try using `-m`or `--model` instead of `--diffusion-model`\n " );
0 commit comments