From: Philippe Antoine Date: Wed, 3 Jul 2019 13:33:15 +0000 (+0200) Subject: log: use SCLogError instead of fprintf X-Git-Tag: suricata-5.0.0-rc1~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=684f1017103bcd725d860fd2e23e9ef7fc9ee8fd;p=thirdparty%2Fsuricata.git log: use SCLogError instead of fprintf --- diff --git a/src/detect-parse.c b/src/detect-parse.c index 5ef1cb7c49..05d38302e5 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -1078,7 +1078,7 @@ static int SigParseBasics(DetectEngineCtx *de_ctx, /* Options. */ if (index == NULL) { - fprintf(stderr, "no rule options.\n"); + SCLogError(SC_ERR_INVALID_RULE_ARGUMENT, "no rule options."); goto error; } while (isspace(*index) || *index == '(') {