Skip to content

Commit

Permalink
metal : fix ggml_metal_log vargs (ggerganov#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor authored and iThalay committed Sep 23, 2024
1 parent 8d827e9 commit 0265c06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ static void ggml_metal_log(enum ggml_log_level level, const char * format, ...){
ggml_metal_log_callback(level, buffer, ggml_metal_log_user_data);
} else {
char* buffer2 = malloc(len+1);
va_end(args);
va_start(args, format);
vsnprintf(buffer2, len+1, format, args);
buffer2[len] = 0;
ggml_metal_log_callback(level, buffer2, ggml_metal_log_user_data);
Expand Down

0 comments on commit 0265c06

Please sign in to comment.