src/Airports/GenAirports850/debug.hxx: fix incompatibility with latest simgear.
We now pass __FUNCTION__ to sglog().would_log().
This commit is contained in:
parent
d3e2f4d717
commit
34945788e1
1 changed files with 2 additions and 2 deletions
|
@ -21,10 +21,10 @@ extern void DebugRegisterPrefix( const std::string& prefix );
|
||||||
extern std::string DebugTimeToString(time_t& tt);
|
extern std::string DebugTimeToString(time_t& tt);
|
||||||
|
|
||||||
#define TG_LOG(C,P,M) do { \
|
#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; \
|
std::ostringstream os; \
|
||||||
os << thread_prefix_map[SGThread::current()] << ":" << M; \
|
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)
|
} while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue