utils: fix macro

This commit is contained in:
Bastian Bloessl
2016-09-20 14:32:59 +02:00
parent 285a0e2558
commit 84c9ff3e0d
+1 -1
View File
@@ -31,7 +31,7 @@
#define dout d_debug && std::cout #define dout d_debug && std::cout
#if defined(HAVE_LOG4CPP) && defined(ENABLE_GR_LOG) && defined(GR_IEEE80211_LOG4CPP) #if defined(HAVE_LOG4CPP) && defined(ENABLE_GR_LOG) && defined(GR_IEEE80211_LOG4CPP)
#define mylog(msg) do { if(d_log) { GR_LOG_INFO(d_logger, msg) }} while(0); #define mylog(msg) do { if(d_log) { GR_LOG_INFO(d_logger, msg); }} while(0);
#else #else
#define mylog(msg) do { d_log && std::cout << msg << std::endl; } while(0); #define mylog(msg) do { d_log && std::cout << msg << std::endl; } while(0);
#endif #endif