TT#108003 Fix type mismatch in printf format string for size_t variable

We should use %zu when printing a size_t.

Change-Id: Ife0b9dd66515880113872cd7655f308e90c325e8
Warned-by: coverity
mr9.3.1
Guillem Jover 4 years ago
parent 00a56dc686
commit 1057527c62

@ -440,7 +440,7 @@ static int cdr_parse_srcleg_json(json_object *json, cdr_entry_t *cdr)
}
if(json_object_array_length(temp_value) != 10)
{
L_ERROR("Call-Id '%s' has only '%d' source gpp fields, they should be 10, '%s'", cdr->call_id, json_object_array_length(temp_value), json_object_get_string(json));
L_ERROR("Call-Id '%s' has only '%zu' source gpp fields, they should be 10, '%s'", cdr->call_id, json_object_array_length(temp_value), json_object_get_string(json));
goto err;
}
int i;
@ -634,7 +634,7 @@ static int cdr_parse_dstleg_json(json_object *json, cdr_entry_t *cdr)
}
if(json_object_array_length(temp_value) != 10)
{
L_ERROR("Call-Id '%s' has only '%d' destination gpp fields, they should be 10, '%s'", cdr->call_id, json_object_array_length(temp_value), json_object_get_string(json));
L_ERROR("Call-Id '%s' has only '%zu' destination gpp fields, they should be 10, '%s'", cdr->call_id, json_object_array_length(temp_value), json_object_get_string(json));
goto err;
}
int i;

Loading…
Cancel
Save