Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
desouza
openairinterface5G
Commits
8333f4cd
Commit
8333f4cd
authored
9 years ago
by
Francesco Bronzino
Browse files
Options
Downloads
Patches
Plain Diff
Fixing some pointer errors
parent
704c96a9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
targets/SIMU/USER/oaisim_config.c
+21
-21
21 additions, 21 deletions
targets/SIMU/USER/oaisim_config.c
targets/SIMU/USER/oaisim_functions.c
+2
-2
2 additions, 2 deletions
targets/SIMU/USER/oaisim_functions.c
with
23 additions
and
23 deletions
targets/SIMU/USER/oaisim_config.c
+
21
−
21
View file @
8333f4cd
...
...
@@ -328,7 +328,7 @@ void init_oai_emulation(void)
}
void
oaisim_config
(
Enb_properties_array_t
*
enb_properties
)
void
oaisim_config
(
void
)
{
// init log gen first
...
...
@@ -398,40 +398,40 @@ void set_log_from_enb_properties(Enb_properties_array_t *enb_properties)
}
printf
(
"configuring for eNB
\n
"
);
set_comp_log
(
HW
,
enb_properties
->
properties
->
hw_log_level
,
enb_properties
->
properties
->
hw_log_verbosity
,
1
);
set_comp_log
(
HW
,
enb_properties
->
properties
[
0
]
->
hw_log_level
,
enb_properties
->
properties
[
0
]
->
hw_log_verbosity
,
1
);
#ifdef OPENAIR2
set_comp_log
(
PHY
,
enb_properties
->
properties
->
phy_log_level
,
enb_properties
->
properties
->
phy_log_verbosity
,
1
);
set_comp_log
(
PHY
,
enb_properties
->
properties
[
0
]
->
phy_log_level
,
enb_properties
->
properties
[
0
]
->
phy_log_verbosity
,
1
);
if
(
opt_enabled
==
1
)
set_comp_log
(
OPT
,
enb_properties
->
properties
->
opt_log_level
,
enb_properties
->
properties
->
opt_log_verbosity
,
1
);
set_comp_log
(
OPT
,
enb_properties
->
properties
[
0
]
->
opt_log_level
,
enb_properties
->
properties
[
0
]
->
opt_log_verbosity
,
1
);
#else
set_comp_log
(
PHY
,
LOG_INFO
,
LOG_HIGH
,
1
);
#endif
set_comp_log
(
MAC
,
enb_properties
->
properties
->
mac_log_level
,
enb_properties
->
properties
->
mac_log_verbosity
,
1
);
set_comp_log
(
RLC
,
enb_properties
->
properties
->
rlc_log_level
,
enb_properties
->
properties
->
rlc_log_verbosity
,
1
);
set_comp_log
(
PDCP
,
enb_properties
->
properties
->
pdcp_log_level
,
enb_properties
->
properties
->
pdcp_log_verbosity
,
1
);
set_comp_log
(
RRC
,
enb_properties
->
properties
->
rrc_log_level
,
enb_properties
->
properties
->
rrc_log_verbosity
,
1
);
set_comp_log
(
MAC
,
enb_properties
->
properties
[
0
]
->
mac_log_level
,
enb_properties
->
properties
[
0
]
->
mac_log_verbosity
,
1
);
set_comp_log
(
RLC
,
enb_properties
->
properties
[
0
]
->
rlc_log_level
,
enb_properties
->
properties
[
0
]
->
rlc_log_verbosity
,
1
);
set_comp_log
(
PDCP
,
enb_properties
->
properties
[
0
]
->
pdcp_log_level
,
enb_properties
->
properties
[
0
]
->
pdcp_log_verbosity
,
1
);
set_comp_log
(
RRC
,
enb_properties
->
properties
[
0
]
->
rrc_log_level
,
enb_properties
->
properties
[
0
]
->
rrc_log_verbosity
,
1
);
#if defined(ENABLE_ITTI)
set_comp_log
(
EMU
,
LOG_INFO
,
LOG_MED
,
1
);
#if defined(ENABLE_USE_MME)
set_comp_log
(
UDP_
,
enb_properties
->
properties
->
udp_log_level
,
enb_properties
->
properties
->
udp_log_verbosity
,
1
);
set_comp_log
(
GTPU
,
enb_properties
->
properties
->
gtpu_log_level
,
enb_properties
->
properties
->
gtpu_log_verbosity
,
1
);
set_comp_log
(
UDP_
,
enb_properties
->
properties
[
0
]
->
udp_log_level
,
enb_properties
->
properties
[
0
]
->
udp_log_verbosity
,
1
);
set_comp_log
(
GTPU
,
enb_properties
->
properties
[
0
]
->
gtpu_log_level
,
enb_properties
->
properties
[
0
]
->
gtpu_log_verbosity
,
1
);
set_comp_log
(
S1AP
,
LOG_DEBUG
,
LOG_HIGH
,
1
);
set_comp_log
(
SCTP
,
LOG_INFO
,
LOG_HIGH
,
1
);
# endif
#if defined(ENABLE_SECURITY)
set_comp_log
(
OSA
,
enb_properties
->
properties
->
osa_log_level
,
enb_properties
->
properties
->
osa_log_verbosity
,
1
);
set_comp_log
(
OSA
,
enb_properties
->
properties
[
0
]
->
osa_log_level
,
enb_properties
->
properties
[
0
]
->
osa_log_verbosity
,
1
);
#endif
#endif
#ifdef LOCALIZATION
...
...
This diff is collapsed.
Click to expand it.
targets/SIMU/USER/oaisim_functions.c
+
2
−
2
View file @
8333f4cd
...
...
@@ -733,10 +733,10 @@ Enb_properties_array_t *get_simulation_options(int argc, char *argv[])
//info: global values need to be set here to have command line options context
// i.e. know whether to overwrite config file with command line options
if
(
!
glog_set
){
oai_emulation
.
info
.
g_log_level
=
enb_properties
->
properties
->
glog_level
;
oai_emulation
.
info
.
g_log_level
=
enb_properties
->
properties
[
0
]
->
glog_level
;
}
if
(
!
glog_verbosity_set
)
{
oai_emulation
.
info
.
g_log_verbosity
=
enb_properties
->
properties
->
glog_verbosity
;
oai_emulation
.
info
.
g_log_verbosity
=
enb_properties
->
properties
[
0
]
->
glog_verbosity
;
}
AssertFatal
(
oai_emulation
.
info
.
nb_enb_local
<=
enb_properties
->
number
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment