Adjust int types in format strings (#2009)

* tweak format sting types
This may not be all of them, but it's the ones which warn on OpenBSD

* complete the changes needed to fix the format string specifers

* avoid using inttypes, directly cast to size_t (u64 usually) instead

---------

Co-authored-by: Concedo <39025047+LostRuins@users.noreply.github.com>
This commit is contained in:
JustCommitRandomness
2026-03-06 11:06:18 +00:00
committed by GitHub
parent e36d7b6464
commit 2fbc3b2ae5
13 changed files with 37 additions and 37 deletions
+3 -3
View File
@@ -123,7 +123,7 @@ bool embeddingstype_load_model(const embeddings_load_model_inputs inputs)
if(devices_override.size()>0)
{
printf("\nOverriding with %d devices...\n",devices_override.size()-1);
printf("\nOverriding with %zu devices...\n",devices_override.size()-1);
model_params.devices = devices_override.data();
}
@@ -215,7 +215,7 @@ embeddings_generation_outputs embeddingstype_generate(const embeddings_generatio
}
if(embeddings_debug)
{
printf("\n%s: Input too long, truncated from %d to last %d tokens.\n", __func__,oldsize,inp.size());
printf("\n%s: Input too long, truncated from %d to last %zu tokens.\n", __func__,oldsize,inp.size());
}
} else {
printf("\n%s: number of tokens in an input (%lld) exceeds embedding size limit for this model (%lld), lower token amount!\n",
@@ -232,7 +232,7 @@ embeddings_generation_outputs embeddingstype_generate(const embeddings_generatio
{
print_tok_vec(inp);
}
printf("\nGenerating Embeddings for %d tokens...",inp.size());
printf("\nGenerating Embeddings for %zu tokens...",inp.size());
// initialize batch
const int n_prompts = 1;