From e8be81cd55abc9448f686238b2d83cee98db4900 Mon Sep 17 00:00:00 2001 From: Pablo Rincon Date: Wed, 30 Jun 2010 17:41:22 +0200 Subject: [PATCH 3/3] Print also the Signature raw string --- src/detect-http-cookie.c | 4 ++-- src/detect-http-method.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/detect-http-cookie.c b/src/detect-http-cookie.c index 9fc6489..e98a560 100644 --- a/src/detect-http-cookie.c +++ b/src/detect-http-cookie.c @@ -224,8 +224,8 @@ static int DetectHttpCookieSetup (DetectEngineCtx *de_ctx, Signature *s, char *s /* http_cookie should not be used with the fast_pattern rule */ if (((DetectContentData *)pm->ctx)->flags & DETECT_CONTENT_FAST_PATTERN) { SCLogWarning(SC_WARN_COMPATIBILITY, "http_cookie rule can not " - "be used with the fast_pattern rule keyword. Unsetting fast_pattern" - "here"); + "be used with the fast_pattern rule keyword. " + "Unsetting fast_pattern on this modifier. Signature ==> %s", s->sig_str); ((DetectContentData *)pm->ctx)->flags &= ~DETECT_CONTENT_FAST_PATTERN; /* http_cookie should not be used with the rawbytes rule */ } else if (((DetectContentData *)pm->ctx)->flags & DETECT_CONTENT_RAWBYTES) { diff --git a/src/detect-http-method.c b/src/detect-http-method.c index a3a0b58..9f8c1bb 100644 --- a/src/detect-http-method.c +++ b/src/detect-http-method.c @@ -179,7 +179,7 @@ static int DetectHttpMethodSetup(DetectEngineCtx *de_ctx, Signature *s, char *st { SCLogWarning(SC_WARN_COMPATIBILITY, "http_method cannot be used with \"fast_pattern\" currently." - "Unsetting fast_pattern on this modifier."); + "Unsetting fast_pattern on this modifier. Signature ==> %s", s->sig_str); ((DetectContentData *)pm->ctx)->flags &= ~DETECT_CONTENT_FAST_PATTERN; } else if (((DetectContentData *)pm->ctx)->flags & DETECT_CONTENT_RAWBYTES) { -- 1.6.5