Remap msg() to LOG_D() when openair2 is used to allow log control.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4821 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
winckel
2014-01-02 17:25:27 +00:00
parent 6f57092c5f
commit 4fbd748453
+7 -2
View File
@@ -48,9 +48,14 @@
#include <math.h>
//#include <complex.h>
#ifdef MEX
#define msg mexPrintf
# define msg mexPrintf
#else
#define msg printf
# ifdef OPENAIR2
# include "log.h"
# define msg(aRGS...) LOG_D(PHY, ##aRGS)
# else
# define msg printf
# endif
#endif
//use msg in the real-time thread context
#define msg_nrt printf