use log_helper for log macros

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent edba7f57e4
commit 9a0ea6e08c

@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2019 Software Radio Systems Limited * Copyright 2013-2020 Software Radio Systems Limited
* *
* This file is part of srsLTE. * This file is part of srsLTE.
* *
@ -19,8 +19,8 @@
* *
*/ */
#ifndef SRSGNB_MAC_NR_H #ifndef SRSENB_MAC_NR_H
#define SRSGNB_MAC_NR_H #define SRSENB_MAC_NR_H
#include "srslte/common/logmap.h" #include "srslte/common/logmap.h"
#include "srslte/common/mac_nr_pcap.h" #include "srslte/common/mac_nr_pcap.h"
@ -107,4 +107,4 @@ private:
} // namespace srsenb } // namespace srsenb
#endif // SRSGNB_MAC_NR_H #endif // SRSENB_MAC_NR_H

@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2019 Software Radio Systems Limited * Copyright 2013-2020 Software Radio Systems Limited
* *
* This file is part of srsLTE. * This file is part of srsLTE.
* *
@ -19,13 +19,9 @@
* *
*/ */
#define Error(fmt, ...) log_h->error(fmt, ##__VA_ARGS__)
#define Warning(fmt, ...) log_h->warning(fmt, ##__VA_ARGS__)
#define Info(fmt, ...) log_h->info(fmt, ##__VA_ARGS__)
#define Debug(fmt, ...) log_h->debug(fmt, ##__VA_ARGS__)
#include "srsenb/hdr/stack/mac/mac_nr.h" #include "srsenb/hdr/stack/mac/mac_nr.h"
#include "srslte/common/buffer_pool.h" #include "srslte/common/buffer_pool.h"
#include "srslte/common/log_helper.h"
#include <pthread.h> #include <pthread.h>
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>

@ -19,12 +19,8 @@
* *
*/ */
#define Error(fmt, ...) log_h->error(fmt, ##__VA_ARGS__)
#define Warning(fmt, ...) log_h->warning(fmt, ##__VA_ARGS__)
#define Info(fmt, ...) log_h->info(fmt, ##__VA_ARGS__)
#define Debug(fmt, ...) log_h->debug(fmt, ##__VA_ARGS__)
#include "srsue/hdr/stack/mac/mac_nr.h" #include "srsue/hdr/stack/mac/mac_nr.h"
#include "srslte/common/log_helper.h"
using namespace asn1::rrc; using namespace asn1::rrc;

Loading…
Cancel
Save