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
6db3311b
Commit
6db3311b
authored
Feb 04, 2020
by
zhenghuangkun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log_men init flag add
parent
7a1d0bb8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
common/utils/LOG/log.c
common/utils/LOG/log.c
+2
-0
common/utils/LOG/log_extern.h
common/utils/LOG/log_extern.h
+1
-0
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+5
-1
No files found.
common/utils/LOG/log.c
View file @
6db3311b
...
...
@@ -47,6 +47,7 @@
log_mem_cnt_t
log_mem_d
[
2
];
int
log_mem_flag
=
0
;
int
log_mem_initflag
=
0
;
int
log_mem_multi
=
1
;
volatile
int
log_mem_side
=
0
;
pthread_mutex_t
log_mem_lock
;
...
...
@@ -877,6 +878,7 @@ int logInit_log_mem (void)
log_mem_d
[
1
].
enable_flag
=
0
;
}
log_mem_initflag
=
1
;
printf
(
"log init done
\n
"
);
return
0
;
...
...
common/utils/LOG/log_extern.h
View file @
6db3311b
...
...
@@ -28,5 +28,6 @@ extern mapping log_level_names[];
extern
mapping
log_options
[];
extern
mapping
log_maskmap
[];
extern
int
log_mem_flag
;
extern
int
log_mem_initflag
;
extern
char
*
log_mem_filename
;
extern
char
logmem_filename
[
1024
];
targets/RT/USER/lte-softmodem.c
View file @
6db3311b
...
...
@@ -261,7 +261,11 @@ void exit_function(const char *file, const char *function, const int line, const
if
(
s
!=
NULL
)
{
printf
(
"%s:%d %s() Exiting OAI softmodem: %s
\n
"
,
file
,
line
,
function
,
s
);
}
if
(
log_mem_initflag
)
{
close_log_mem
();
}
oai_exit
=
1
;
if
(
RC
.
ru
==
NULL
)
...
...
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