datajson: fix string format in error message

pull/13432/head
Eric Leblond 7 months ago committed by Victor Julien
parent 61ac7b46c1
commit b8e2791482

@ -68,7 +68,7 @@ static int ParseJsonLine(const char *in, size_t ins, DataJsonType *rep_out)
/* JANSSON does not see an integer, float or a string as valid JSON.
So we need to exclude them from failure. */
if (!IsFloat(in, ins) && !((in[0] == '"') && (in[ins - 1] == '"'))) {
SCLogWarning("dataset: Invalid json: %s: '%s'\n", jerror.text, in);
SCLogError("dataset: Invalid json: %s: '%s'", jerror.text, in);
return -1;
}
} else {

Loading…
Cancel
Save