Commit c313dff2 authored by Robert Schmidt's avatar Robert Schmidt

better logging, remove warnings

parent c62be7a1
...@@ -330,7 +330,7 @@ void *eNB_app_task(void *args_p) ...@@ -330,7 +330,7 @@ void *eNB_app_task(void *args_p)
// set again the ran api vars // set again the ran api vars
for (enb_id = enb_id_start; (enb_id < enb_id_end) ; enb_id++) { for (enb_id = enb_id_start; (enb_id < enb_id_end) ; enb_id++) {
printf("\n set again enb vars %d\n", enb_id); LOG_I(ENB_APP, "set again enb vars %d\n", enb_id);
flexran_set_enb_vars(enb_id, RAN_LTE_OAI); flexran_set_enb_vars(enb_id, RAN_LTE_OAI);
} }
......
...@@ -216,35 +216,34 @@ int parse_enb_config_parameters(mid_t mod_id, yaml_parser_t *parser) { ...@@ -216,35 +216,34 @@ int parse_enb_config_parameters(mid_t mod_id, yaml_parser_t *parser) {
goto error; goto error;
} }
// Check what key needs to be set // Check what key needs to be set
LOG_I(ENB_APP, "Setting parameter %s\n", event.data.scalar.value);
if (strcmp((char *) event.data.scalar.value, "dl_freq") == 0) { if (strcmp((char *) event.data.scalar.value, "dl_freq") == 0) {
if (!yaml_parser_parse(parser, &event)) if (!yaml_parser_parse(parser, &event))
goto error; goto error;
flexran_agent_set_operating_dl_freq(mod_id, flexran_agent_set_operating_dl_freq(mod_id,
0, 0,
strtol((char *) event.data.scalar.value, &endptr, 10)); strtol((char *) event.data.scalar.value, &endptr, 10));
LOG_I(ENB_APP, "Setting parameter value %s\n", event.data.scalar.value); LOG_I(ENB_APP, "Setting dl_freq to %s\n", event.data.scalar.value);
} else if (strcmp((char *) event.data.scalar.value, "ul_freq_offset") == 0) { } else if (strcmp((char *) event.data.scalar.value, "ul_freq_offset") == 0) {
if (!yaml_parser_parse(parser, &event)) if (!yaml_parser_parse(parser, &event))
goto error; goto error;
flexran_agent_set_operating_ul_freq(mod_id, flexran_agent_set_operating_ul_freq(mod_id,
0, 0,
strtol((char *) event.data.scalar.value, &endptr, 10)); strtol((char *) event.data.scalar.value, &endptr, 10));
LOG_I(ENB_APP, "Setting parameter value %s\n", event.data.scalar.value); LOG_I(ENB_APP, "Setting ul_freq_offset to %s\n", event.data.scalar.value);
} else if (strcmp((char *) event.data.scalar.value, "bandwidth") == 0) { } else if (strcmp((char *) event.data.scalar.value, "bandwidth") == 0) {
if (!yaml_parser_parse(parser, &event)) if (!yaml_parser_parse(parser, &event))
goto error; goto error;
flexran_agent_set_operating_bandwidth(mod_id, flexran_agent_set_operating_bandwidth(mod_id,
0, 0,
strtol((char *) event.data.scalar.value, &endptr, 10)); strtol((char *) event.data.scalar.value, &endptr, 10));
LOG_I(ENB_APP, "Setting parameter value %s\n", event.data.scalar.value); LOG_I(ENB_APP, "Setting bandwidth to %s\n", event.data.scalar.value);
} else if (strcmp((char *) event.data.scalar.value, "frame_type") == 0) { } else if (strcmp((char *) event.data.scalar.value, "frame_type") == 0) {
if (!yaml_parser_parse(parser, &event)) if (!yaml_parser_parse(parser, &event))
goto error; goto error;
flexran_agent_set_operating_frame_type (mod_id, flexran_agent_set_operating_frame_type (mod_id,
0, 0,
strtol((char *) event.data.scalar.value, &endptr, 10)); strtol((char *) event.data.scalar.value, &endptr, 10));
LOG_I(ENB_APP, "Setting parameter value %s\n", event.data.scalar.value); LOG_I(ENB_APP, "Setting frame_type to %s\n", event.data.scalar.value);
}else { // not supported tag }else { // not supported tag
goto error; goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment