Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
f79bab42
Commit
f79bab42
authored
Jul 29, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/asn1_log_issue' into integration_2023_w30
parents
e188faa3
5f5b8f29
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
CMakeLists.txt
CMakeLists.txt
+1
-1
common/utils/LOG/log.c
common/utils/LOG/log.c
+1
-1
common/utils/LOG/log.h
common/utils/LOG/log.h
+1
-1
common/utils/config.h
common/utils/config.h
+6
-6
No files found.
CMakeLists.txt
View file @
f79bab42
...
...
@@ -268,7 +268,7 @@ add_library(ITTI ${OCP_ITTI}/intertask_interface.cpp)
target_link_libraries
(
ITTI PRIVATE asn1_lte_rrc_hdrs asn1_nr_rrc_hdrs
)
# asn1c skeletons have hardcoded this flag to make customized debug logs
# OAI uses this feature to re-use OAI LOG_I(ASN, ...)
# OAI uses this feature to re-use OAI LOG_I(ASN
1
, ...)
if
(
DEBUG_ASN1C
)
add_definitions
(
-DHAVE_CONFIG_H
)
endif
()
...
...
common/utils/LOG/log.c
View file @
f79bab42
...
...
@@ -487,7 +487,7 @@ int logInit (void)
register_log_component
(
"SCTP"
,
""
,
SCTP
);
register_log_component
(
"X2AP"
,
""
,
X2AP
);
register_log_component
(
"LOADER"
,
"log"
,
LOADER
);
register_log_component
(
"ASN
"
,
"log"
,
ASN
);
register_log_component
(
"ASN
1"
,
"log"
,
ASN1
);
register_log_component
(
"NFAPI_VNF"
,
"log"
,
NFAPI_VNF
);
register_log_component
(
"NFAPI_PNF"
,
"log"
,
NFAPI_PNF
);
register_log_component
(
"GNB_APP"
,
"log"
,
GNB_APP
);
...
...
common/utils/LOG/log.h
View file @
f79bab42
...
...
@@ -240,7 +240,7 @@ typedef enum {
NR_MAC
,
NR_PHY
,
LOADER
,
ASN
,
ASN
1
,
NFAPI_VNF
,
NFAPI_PNF
,
ITTI
,
...
...
common/utils/config.h
View file @
f79bab42
...
...
@@ -27,28 +27,28 @@
/*
* This file "config.h" will be used by asn1c if HAVE_CONFIG_H_ is defined and
* included. This logs asn1c encoder and decoder traces at execution time using
* the regular OAI logging system, i.e., LOG_I(ASN...);
* the regular OAI logging system, i.e., LOG_I(ASN
1
...);
*
* As it is very verbose, note that you can change the log level per module in
* source or in gdb, e.g., to only activate it for a short time.
*
* In code:
* ```
* set_log(ASN, OAI_INFO); // enable logging
* set_log(ASN
1
, OAI_INFO); // enable logging
* // do your encoding here
* set_log(ASN, OAI_ERR); // disable logging
* set_log(ASN
1
, OAI_ERR); // disable logging
* ```
*
* in gdb:
* ```
* gdb> p set_log(ASN, 1) // disable log, 1 == OAI_ERR
* gdb> p set_log(ASN, 5) // enable log, 5 == OAI_INFO
* gdb> p set_log(ASN
1
, 1) // disable log, 1 == OAI_ERR
* gdb> p set_log(ASN
1
, 5) // enable log, 5 == OAI_INFO
* ```
*/
#include "common/utils/LOG/log.h"
#if DEBUG_ASN1C
#define ASN_DEBUG(x...) do{ LOG_I(ASN
,x);LOG_I(ASN
,"\n"); } while(false)
#define ASN_DEBUG(x...) do{ LOG_I(ASN
1,x);LOG_I(ASN1
,"\n"); } while(false)
#else
#define ASN_DEBUG(x...)
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment