Skip to content

Commit ddb40b5

Browse files
committed
Fix printf
1 parent 6ba1542 commit ddb40b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

model.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)