Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log: refine log function for Android #2071

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix build issue which reported by github CI system
  • Loading branch information
zhou.weiguo committed Apr 17, 2024
commit 0362365beca7297fee1af1d3789e15cce515ce3b
4 changes: 2 additions & 2 deletions whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ extern "C" int __android_log_print(int prio, const char * tag, const char * fmt,
__attribute__((__format__(printf, 3, 4)));
#endif

WHISPER_ATTRIBUTE_FORMAT(2, 3)
WHISPER_ATTRIBUTE_FORMAT(5, 6)
static void whisper_log_internal (ggml_log_level level, const char * file, const char * func, int line, const char * format, ...);
static void whisper_log_callback_default(ggml_log_level level, const char * text, void * user_data);

Expand Down Expand Up @@ -7204,7 +7204,7 @@ void whisper_log_set(ggml_log_callback log_callback, void * user_data) {
g_state.log_callback_user_data = user_data;
}

GGML_ATTRIBUTE_FORMAT(2, 3)
GGML_ATTRIBUTE_FORMAT(5, 6)
static void whisper_log_internal(ggml_log_level level, const char * file, const char * func, int line, const char * format, ...) {
va_list args;
va_start(args, format);
Expand Down
Loading