use common log helper macros

master
Francisco Paisana 5 years ago
parent 0d38c33a60
commit 057980d1fb

@ -30,21 +30,9 @@
#include "srsenb/hdr/phy/vnf_phy_nr.h" #include "srsenb/hdr/phy/vnf_phy_nr.h"
#include "srslte/common/basic_vnf_api.h" #include "srslte/common/basic_vnf_api.h"
#include "srslte/common/log.h" #include "srslte/common/log.h"
#include "srslte/common/test_common.h"
#include "srslte/common/threads.h" #include "srslte/common/threads.h"
#define Error(fmt, ...) \
if (SRSLTE_DEBUG_ENABLED) \
log_h->error(fmt, ##__VA_ARGS__)
#define Warning(fmt, ...) \
if (SRSLTE_DEBUG_ENABLED) \
log_h->warning(fmt, ##__VA_ARGS__)
#define Info(fmt, ...) \
if (SRSLTE_DEBUG_ENABLED) \
log_h->info(fmt, ##__VA_ARGS__)
#define Debug(fmt, ...) \
if (SRSLTE_DEBUG_ENABLED) \
log_h->debug(fmt, ##__VA_ARGS__)
using namespace std; using namespace std;
namespace srsenb { namespace srsenb {

@ -29,22 +29,10 @@
#include "srslte/common/basic_vnf_api.h" #include "srslte/common/basic_vnf_api.h"
#include "srslte/common/log.h" #include "srslte/common/log.h"
#include "srslte/common/test_common.h"
#include "srslte/common/threads.h" #include "srslte/common/threads.h"
#include "srsue/hdr/phy/vnf_phy_nr.h" #include "srsue/hdr/phy/vnf_phy_nr.h"
#define Error(fmt, ...) \
if (SRSLTE_DEBUG_ENABLED) \
log_h->error(fmt, ##__VA_ARGS__)
#define Warning(fmt, ...) \
if (SRSLTE_DEBUG_ENABLED) \
log_h->warning(fmt, ##__VA_ARGS__)
#define Info(fmt, ...) \
if (SRSLTE_DEBUG_ENABLED) \
log_h->info(fmt, ##__VA_ARGS__)
#define Debug(fmt, ...) \
if (SRSLTE_DEBUG_ENABLED) \
log_h->debug(fmt, ##__VA_ARGS__)
using namespace std; using namespace std;
namespace srsue { namespace srsue {

Loading…
Cancel
Save