From: Eric Leblond Date: Sun, 6 Apr 2025 09:05:47 +0000 (+0200) Subject: datajson: fix string format in error message X-Git-Tag: suricata-8.0.0-rc1~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e2791482b75b9b5032293fb2899ef77dba7181;p=thirdparty%2Fsuricata.git datajson: fix string format in error message --- diff --git a/src/datajson.c b/src/datajson.c index 7df205cd87..f8d1fc7f58 100644 --- a/src/datajson.c +++ b/src/datajson.c @@ -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 {