CI: fixing the cppcheck assertion non-check.
fixed also new warnings Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
@@ -353,7 +353,7 @@ void enb_config_init(const char const * lib_config_file_name_pP)
|
||||
setting_enb = config_setting_get_elem(setting, i);
|
||||
active_enb[i] = config_setting_get_string (setting_enb);
|
||||
AssertFatal (active_enb[i] != NULL,
|
||||
"Failed to parse config file %s, %uth attribute %s \n",
|
||||
"Failed to parse config file %s, %dth attribute %s \n",
|
||||
lib_config_file_name_pP, i, ENB_CONFIG_STRING_ACTIVE_ENBS);
|
||||
active_enb[i] = strdup(active_enb[i]);
|
||||
num_enb_properties += 1;
|
||||
@@ -393,7 +393,7 @@ void enb_config_init(const char const * lib_config_file_name_pP)
|
||||
)
|
||||
) {
|
||||
AssertError (0, parse_errors ++,
|
||||
"Failed to parse eNB configuration file %s, %u th enb\n",
|
||||
"Failed to parse eNB configuration file %s, %d th enb\n",
|
||||
lib_config_file_name_pP, i);
|
||||
continue; // FIXME this prevents segfaults below, not sure what happens after function exit
|
||||
}
|
||||
@@ -441,7 +441,7 @@ void enb_config_init(const char const * lib_config_file_name_pP)
|
||||
)
|
||||
) {
|
||||
AssertError (0, parse_errors ++,
|
||||
"Failed to parse eNB configuration file %s, %u th enb %u th mme address !\n",
|
||||
"Failed to parse eNB configuration file %s, %d th enb %d th mme address !\n",
|
||||
lib_config_file_name_pP, i, j);
|
||||
continue; // FIXME will prevent segfaults below, not sure what happens at function exit...
|
||||
}
|
||||
|
||||
@@ -473,7 +473,7 @@ void et_enb_config_init(const char const * lib_config_file_name_pP)
|
||||
setting_enb = config_setting_get_elem(setting, i);
|
||||
active_enb[i] = config_setting_get_string (setting_enb);
|
||||
AssertFatal (active_enb[i] != NULL,
|
||||
"Failed to parse config file %s, %uth attribute %s \n",
|
||||
"Failed to parse config file %s, %dth attribute %s \n",
|
||||
lib_config_file_name_pP, i, ENB_CONFIG_STRING_ACTIVE_ENBS);
|
||||
active_enb[i] = strdup(active_enb[i]);
|
||||
num_enb_properties += 1;
|
||||
@@ -513,7 +513,7 @@ void et_enb_config_init(const char const * lib_config_file_name_pP)
|
||||
)
|
||||
) {
|
||||
AssertError (0, parse_errors ++,
|
||||
"Failed to parse eNB configuration file %s, %u th enb\n",
|
||||
"Failed to parse eNB configuration file %s, %d th enb\n",
|
||||
lib_config_file_name_pP, i);
|
||||
continue; // FIXME this prevents segfaults below, not sure what happens after function exit
|
||||
}
|
||||
@@ -561,7 +561,7 @@ void et_enb_config_init(const char const * lib_config_file_name_pP)
|
||||
)
|
||||
) {
|
||||
AssertError (0, parse_errors ++,
|
||||
"Failed to parse eNB configuration file %s, %u th enb %u th mme address !\n",
|
||||
"Failed to parse eNB configuration file %s, %d th enb %d th mme address !\n",
|
||||
lib_config_file_name_pP, i, j);
|
||||
continue; // FIXME will prevent segfaults below, not sure what happens at function exit...
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ void et_parse_s1ap(xmlDocPtr doc, const xmlNode const *s1ap_node, et_s1ap_t * co
|
||||
rc = et_hex2data( &s1ap->binary_stream[s1ap->binary_stream_pos], xml_char, xmlStrlen(xml_char));
|
||||
s1ap->binary_stream_pos += xmlStrlen(xml_char)/2;
|
||||
//et_display_node(cur_node, 0);
|
||||
AssertFatal (rc >= 0, "ERROR in converting hex string %s len %d size %d rc %d\n", xml_char, xmlStrlen(xml_char), size, rc);
|
||||
AssertFatal (rc >= 0, "ERROR in converting hex string %s len %d size %u rc %d\n", xml_char, xmlStrlen(xml_char), size, rc);
|
||||
go_deeper_in_tree = 0;
|
||||
//}
|
||||
xmlFree(xml_char);
|
||||
|
||||
@@ -616,7 +616,7 @@ int et_scenario_set_packet_received(et_packet_t * const packet)
|
||||
|
||||
if (0 != packet->timer_id) {
|
||||
rc = timer_remove(packet->timer_id);
|
||||
AssertFatal(rc == 0, "TODO: Debug Timer on Rx packet num %d unknown", packet->packet_number);
|
||||
AssertFatal(rc == 0, "TODO: Debug Timer on Rx packet num %u unknown", packet->packet_number);
|
||||
g_scenario->timer_count--;
|
||||
return rc;
|
||||
}
|
||||
@@ -919,7 +919,7 @@ void et_s1ap_update_assoc_id_of_packets(const int32_t assoc_id,
|
||||
break;
|
||||
|
||||
default:
|
||||
AssertFatal(0, "Unknown chunk_type %d packet num %d", packet->sctp_hdr.chunk_type, packet->packet_number);
|
||||
AssertFatal(0, "Unknown chunk_type %d packet num %u", packet->sctp_hdr.chunk_type, packet->packet_number);
|
||||
;
|
||||
}
|
||||
packet = packet->next;
|
||||
|
||||
@@ -122,7 +122,7 @@ void update_xpath_node_mme_ue_s1ap_id(et_s1ap_t * const s1ap, xmlNode *node, con
|
||||
hex[2] = '\0';
|
||||
end_ptr = hex;
|
||||
uli = strtoul(hex, &end_ptr, 16);
|
||||
AssertFatal((uli != ULONG_MAX) && (end_ptr != NULL) && (*end_ptr == '\0'), "Conversion of hexstring %s failed returned %ld errno %d", hex, uli, errno);
|
||||
AssertFatal((uli != ULONG_MAX) && (end_ptr != NULL) && (*end_ptr == '\0'), "Conversion of hexstring %s failed returned %lu errno %d", hex, uli, errno);
|
||||
s1ap->binary_stream[pos++] = (unsigned char)uli;
|
||||
} while (pos2 < (2*5));
|
||||
// update ASN1
|
||||
|
||||
Reference in New Issue
Block a user