From b8e2791482b75b9b5032293fb2899ef77dba7181 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 6 Apr 2025 11:05:47 +0200 Subject: [PATCH] datajson: fix string format in error message --- src/datajson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.2