From bc8762f27f185c5db1cbd0d8ec3bcc8e1771856d Mon Sep 17 00:00:00 2001 From: Ed Addario Date: Sat, 13 Sep 2025 08:33:22 +0100 Subject: [PATCH] Capture surrounding function name --- src/llama-quant.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index c4c525c68e..cae908803b 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -651,6 +651,7 @@ static std::unordered_map target_bpw_type( constexpr double epsilon = 1e-12; constexpr double infinity = std::numeric_limits::infinity(); + const char * func = __func__; auto tensor_bytes = [](const ggml_tensor * t, const ggml_type typ) -> size_t { const int64_t n_per_row = t->ne[0]; @@ -1083,7 +1084,7 @@ static std::unordered_map target_bpw_type( } } else { LLAMA_LOG_WARN("%s: side data size mismatch for %s: got %zu, expected %zu or %zu; ignoring\n", - __func__, name.c_str(), src_sz, (size_t)n_per_row, want); + func, name.c_str(), src_sz, (size_t)n_per_row, want); } };