Capture surrounding function name

This commit is contained in:
Ed Addario 2025-09-13 08:33:22 +01:00
parent 886536d80a
commit bc8762f27f
No known key found for this signature in database
GPG Key ID: E7875815A3230993
1 changed files with 2 additions and 1 deletions

View File

@ -651,6 +651,7 @@ static std::unordered_map<std::string, ggml_type> target_bpw_type(
constexpr double epsilon = 1e-12;
constexpr double infinity = std::numeric_limits<double>::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<std::string, ggml_type> 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);
}
};