From 34945788e192df744f0db87fda51f87f9c651b5c Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Mon, 2 Nov 2020 08:44:14 +0000 Subject: [PATCH] src/Airports/GenAirports850/debug.hxx: fix incompatibility with latest simgear. We now pass __FUNCTION__ to sglog().would_log(). --- src/Airports/GenAirports850/debug.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Airports/GenAirports850/debug.hxx b/src/Airports/GenAirports850/debug.hxx index 81a2ec22..0b941311 100644 --- a/src/Airports/GenAirports850/debug.hxx +++ b/src/Airports/GenAirports850/debug.hxx @@ -21,10 +21,10 @@ extern void DebugRegisterPrefix( const std::string& prefix ); extern std::string DebugTimeToString(time_t& tt); #define TG_LOG(C,P,M) do { \ - if(sglog().would_log(C,P)) { \ + if(sglog().would_log(C,P, __FILE__, __LINE__, __FUNCTION__)) { \ std::ostringstream os; \ os << thread_prefix_map[SGThread::current()] << ":" << M; \ - sglog().log(C, P, __FILE__, __LINE__, os.str()); \ + sglog().log(C, P, __FILE__, __LINE__, __FUNCTION__, os.str()); \ } \ } while(0) #endif