From d4d4e97d377c2a5f61ef05fc086ff59f6ae2580a Mon Sep 17 00:00:00 2001 From: Hans Date: Fri, 3 May 2024 21:08:29 +0800 Subject: [PATCH] refactor: make QNN log to stderr (sync behavior with llama.cpp) --- src/ggml-qnn/ggml-qnn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ggml-qnn/ggml-qnn.cpp b/src/ggml-qnn/ggml-qnn.cpp index 44a6612..cc1c751 100644 --- a/src/ggml-qnn/ggml-qnn.cpp +++ b/src/ggml-qnn/ggml-qnn.cpp @@ -1548,7 +1548,7 @@ static void ggml_qnn_log_internal(ggml_log_level level, const char * file, const #if (defined __ANDROID__) || (defined ANDROID) __android_log_print(level, "KANTV", "%s", s_ggml_qnn_log_internal_buf); //TODO:modify to llama.cpp before submit to upstream #else - printf("%s", s_ggml_qnn_log_internal_buf); //Qualcomm's QNN could running on Window over ARM + fputs(s_ggml_qnn_log_internal_buf, stderr); #endif } va_end(args);