From: Victor Julien Date: Tue, 11 Jun 2013 10:20:37 +0000 (+0200) Subject: bytetest: fix debug messages not printing negative offset correctly X-Git-Tag: suricata-2.0beta1~122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0fbfaadd534fa3cf48930ca341e32cb247a3fd35;p=thirdparty%2Fsuricata.git bytetest: fix debug messages not printing negative offset correctly --- diff --git a/src/detect-bytetest.c b/src/detect-bytetest.c index 5acd1c2790..109837400f 100644 --- a/src/detect-bytetest.c +++ b/src/detect-bytetest.c @@ -131,7 +131,7 @@ int DetectBytetestDoMatch(DetectEngineThreadCtx *det_ctx, Signature *s, SigMatch */ if (flags & DETECT_BYTETEST_RELATIVE) { SCLogDebug("relative, working with det_ctx->buffer_offset %"PRIu32", " - "data->offset %"PRIu32"", det_ctx->buffer_offset, data->offset); + "data->offset %"PRIi32"", det_ctx->buffer_offset, data->offset); ptr = payload + det_ctx->buffer_offset; len = payload_len - det_ctx->buffer_offset; @@ -147,7 +147,7 @@ int DetectBytetestDoMatch(DetectEngineThreadCtx *det_ctx, Signature *s, SigMatch //PrintRawDataFp(stdout,ptr,len); } else { - SCLogDebug("absolute, data->offset %"PRIu32"", data->offset); + SCLogDebug("absolute, data->offset %"PRIi32"", data->offset); ptr = payload + offset; len = payload_len - offset;