diff --git a/expose.cpp b/expose.cpp index fe0ee8a43..703b15872 100644 --- a/expose.cpp +++ b/expose.cpp @@ -187,7 +187,7 @@ extern "C" } else if(file_format==FileFormat::GGUF_GENERIC) { - printf("\n---\nIdentified as GGUF model.\nAttempting to Load...\n---\n", file_format); + printf("\n---\nIdentified as GGUF model.\nAttempting to Load...\n---\n"); } else if(file_format==FileFormat::GGML || file_format==FileFormat::GGHF || file_format==FileFormat::GGJT || file_format==FileFormat::GGJT_2 || file_format==FileFormat::GGJT_3) { diff --git a/gpttype_adapter.cpp b/gpttype_adapter.cpp index 87d536ed9..590e1463a 100644 --- a/gpttype_adapter.cpp +++ b/gpttype_adapter.cpp @@ -3754,7 +3754,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs) if (debugmode==1 && !is_quiet) { std::string outstr = ""; - printf("\n\n[Debug: Dump %d Raw Input Tokens]\n",embd_inp.size()); + printf("\n\n[Debug: Dump %zu Raw Input Tokens]\n",embd_inp.size()); outstr += get_tok_vec_str(embd_inp); printf("%s\n", RemoveBell(outstr).c_str()); } @@ -3988,7 +3988,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs) int32_t decode_status2 = llama_decode(llama_ctx_v4, smallbatch.batch); if(debugmode==1 && !is_quiet) { - printf("Retry chunk: %d at %d... status: %s\n",chunk.size(),temp_past,(decode_status2==0?"ok":"fail")); + printf("Retry chunk: %zu at %d... status: %s\n",chunk.size(),temp_past,(decode_status2==0?"ok":"fail")); } evalres = (evalres && (decode_status2==0)); temp_past += chunk.size(); diff --git a/otherarch/sdcpp/sdtype_adapter.cpp b/otherarch/sdcpp/sdtype_adapter.cpp index 2771b5852..ff0f7e34b 100644 --- a/otherarch/sdcpp/sdtype_adapter.cpp +++ b/otherarch/sdcpp/sdtype_adapter.cpp @@ -916,7 +916,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs) if(!sd_is_quiet && sddebugmode==1) { - printf("\nImageGen References: RefImg=%d Wan=%d Photomaker=%d\n",reference_imgs.size(),wan_imgs.size(),photomaker_imgs.size()); + printf("\nImageGen References: RefImg=%zu Wan=%zu Photomaker=%zu\n",reference_imgs.size(),wan_imgs.size(),photomaker_imgs.size()); } } diff --git a/tools/mtmd/clip.cpp b/tools/mtmd/clip.cpp index c12bc8310..d1a7b5ba6 100644 --- a/tools/mtmd/clip.cpp +++ b/tools/mtmd/clip.cpp @@ -5264,7 +5264,7 @@ bool clip_model_quantize(const char * fname_inp, const char * fname_out, const i const int64_t blck_size = ggml_blck_size(type); if(d==0 && cur->ne[d] % blck_size != 0) { - printf("\nSkipping %s because %d is not divisible by %d\n",name.c_str(),cur->ne[d],blck_size); + printf("\nSkipping %s because %" PRId64 " is not divisible by %ld\n",name.c_str(),cur->ne[d],blck_size); quantize = false; break; }