Skip to content

Commit b3e9b3e

Browse files
committed
PRId64
1 parent 6e1c4f0 commit b3e9b3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/llava/gemma3-cli.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <vector>
1212
#include <limits.h>
13+
#include <inttypes.h>
1314

1415
#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
1516
#include <signal.h>
@@ -169,7 +170,7 @@ static int eval_image(gemma3_context & ctx, std::string & fname) {
169170
clip_image_u8_free(img_u8);
170171
return 1;
171172
}
172-
LOG("Image encoded in %lld ms\n", ggml_time_ms() - t0);
173+
LOG("Image encoded in %" PRId64 " ms\n", ggml_time_ms() - t0);
173174

174175
clip_image_f32_batch_free(&batch_f32);
175176
clip_image_u8_free(img_u8);
@@ -186,7 +187,7 @@ static int eval_image(gemma3_context & ctx, std::string & fname) {
186187
ctx.n_past += n_tokens;
187188
llama_set_causal_attn(ctx.lctx, true);
188189
eval_text(ctx, "<end_of_image>");
189-
LOG("Image decoded in %lld ms\n", ggml_time_ms() - t1);
190+
LOG("Image decoded in %" PRId64 " ms\n", ggml_time_ms() - t1);
190191
return 0;
191192
}
192193

0 commit comments

Comments
 (0)