Skip to content

Commit 0b32b68

Browse files
committed
refactor: update logging macros to use LLAMA_LOG functions
1 parent 50a7855 commit 0b32b68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/mtmd/mtmd-helper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "mtmd.h"
1111
#include "mtmd-helper.h"
1212
#include "llama.h"
13+
#include "llama-impl.h"
1314

1415
#include <algorithm>
1516
#include <cinttypes>
@@ -32,8 +33,8 @@
3233
#define STB_IMAGE_IMPLEMENTATION
3334
#include "stb/stb_image.h"
3435

35-
#define LOG_INF(...) fprintf(stdout, __VA_ARGS__)
36-
#define LOG_ERR(...) fprintf(stderr, __VA_ARGS__)
36+
#define LOG_INF(...) LLAMA_LOG_DEBUG(__VA_ARGS__)
37+
#define LOG_ERR(...) LLAMA_LOG_ERROR(__VA_ARGS__)
3738

3839
size_t mtmd_helper_get_n_tokens(const mtmd_input_chunks * chunks) {
3940
size_t n_tokens = 0;

0 commit comments

Comments
 (0)