From: Victor Julien Date: Sat, 21 Oct 2017 08:00:08 +0000 (+0200) Subject: detect: add debug statements for byte_extract/isdataat X-Git-Tag: suricata-4.0.2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=862780c7c36e02dffb31342b90d61170952b7bfb;p=thirdparty%2Fsuricata.git detect: add debug statements for byte_extract/isdataat --- diff --git a/src/detect-byte-extract.c b/src/detect-byte-extract.c index 262b382868..26166d315c 100644 --- a/src/detect-byte-extract.c +++ b/src/detect-byte-extract.c @@ -193,7 +193,7 @@ int DetectByteExtractDoMatch(DetectEngineThreadCtx *det_ctx, const SigMatchData det_ctx->buffer_offset = ptr - payload; *value = val; - + SCLogDebug("extracted value is %"PRIu64, val); return 1; } diff --git a/src/detect-isdataat.c b/src/detect-isdataat.c index 8d75a19674..01631d8dbb 100644 --- a/src/detect-isdataat.c +++ b/src/detect-isdataat.c @@ -239,6 +239,7 @@ int DetectIsdataatSetup (DetectEngineCtx *de_ctx, Signature *s, const char *isda } idad->dataat = ((DetectByteExtractData *)bed_sm->ctx)->local_id; idad->flags |= ISDATAAT_OFFSET_BE; + SCLogDebug("isdataat uses byte_extract with local id %u", idad->dataat); SCFree(offset); }