Skip to content

Commit 60e9f28

Browse files
committed
extend log
1 parent 969ef81 commit 60e9f28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/llama-impl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ void llama_log_set(ggml_log_callback log_callback, void * user_data) {
3434
static void llama_log_internal_v(ggml_log_level level, const char * format, va_list args) {
3535
va_list args_copy;
3636
va_copy(args_copy, args);
37-
char buffer[128];
38-
int len = vsnprintf(buffer, 128, format, args);
39-
if (len < 128) {
37+
char buffer[512];
38+
int len = vsnprintf(buffer, 512, format, args);
39+
if (len < 512) {
4040
g_logger_state.log_callback(level, buffer, g_logger_state.log_callback_user_data);
4141
} else {
4242
char * buffer2 = new char[len + 1];

0 commit comments

Comments
 (0)