use log_helper for log macros

This commit is contained in:
Francisco Paisana 2020-05-25 11:56:36 +01:00 committed by Francisco Paisana
parent edba7f57e4
commit 9a0ea6e08c
3 changed files with 7 additions and 15 deletions

View File

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

View File

@ -1,5 +1,5 @@
/*
* Copyright 2013-2019 Software Radio Systems Limited
* Copyright 2013-2020 Software Radio Systems Limited
*
* 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 "srslte/common/buffer_pool.h"
#include "srslte/common/log_helper.h"
#include <pthread.h>
#include <string.h>
#include <strings.h>

View File

@ -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 "srslte/common/log_helper.h"
using namespace asn1::rrc;