From 684f1017103bcd725d860fd2e23e9ef7fc9ee8fd Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 3 Jul 2019 15:33:15 +0200 Subject: [PATCH] log: use SCLogError instead of fprintf --- src/detect-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '(') {