From c58a3bf6775f0f94f58b1b7930f890e9576f5288 Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Tue, 18 Nov 2025 17:58:15 -0800 Subject: [PATCH] prof: fix tensor dims formatter --- ggml/src/ggml-profile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml/src/ggml-profile.cpp b/ggml/src/ggml-profile.cpp index c6f3aa09ef..73e21a16e0 100644 --- a/ggml/src/ggml-profile.cpp +++ b/ggml/src/ggml-profile.cpp @@ -65,8 +65,8 @@ extern "C" void ggml_graph_profile_start(struct ggml_cgraph *cg, int n_threads) static inline int ggml_profile_format_tensor_dims(char *str, struct ggml_tensor *t) { - return sprintf(str, "%d:%d:%d:%d", - (int) t->ne[0], (int) t->ne[1], (int) t->ne[3], (int) t->ne[3]); + return sprintf(str, "%ld:%ld:%ld:%ld", + (long) t->ne[0], (long) t->ne[1], (long) t->ne[2], (long) t->ne[3]); } static inline void ggml_profile_format_op_dims(char *str, struct ggml_tensor *t)