From 60e9f285c326e869bca35a2634861af789a21e0e Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 26 Jun 2025 18:52:44 +0800 Subject: [PATCH] extend log --- src/llama-impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/llama-impl.cpp b/src/llama-impl.cpp index 6ec709dd3..f9486215c 100644 --- a/src/llama-impl.cpp +++ b/src/llama-impl.cpp @@ -34,9 +34,9 @@ void llama_log_set(ggml_log_callback log_callback, void * user_data) { static void llama_log_internal_v(ggml_log_level level, const char * format, va_list args) { va_list args_copy; va_copy(args_copy, args); - char buffer[128]; - int len = vsnprintf(buffer, 128, format, args); - if (len < 128) { + char buffer[512]; + int len = vsnprintf(buffer, 512, format, args); + if (len < 512) { g_logger_state.log_callback(level, buffer, g_logger_state.log_callback_user_data); } else { char * buffer2 = new char[len + 1];