From: Victor Julien Date: Thu, 5 Oct 2023 13:46:18 +0000 (+0200) Subject: detect/bytejump: fix debug messages X-Git-Tag: suricata-8.0.0-beta1~2000 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83c4de4cee9e54ba5bd01338b6a348f6a3e32c86;p=thirdparty%2Fsuricata.git detect/bytejump: fix debug messages Remove newlines. --- diff --git a/src/detect-bytejump.c b/src/detect-bytejump.c index 37c01ed8c3..3e7ae4f5e0 100644 --- a/src/detect-bytejump.c +++ b/src/detect-bytejump.c @@ -222,14 +222,14 @@ bool DetectBytejumpDoMatch(DetectEngineThreadCtx *det_ctx, const Signature *s, /* Calculate the jump location */ if (flags & DETECT_BYTEJUMP_BEGIN) { jumpptr = payload + (int64_t)val; - SCLogDebug("NEWVAL: payload %p + %" PRIi64 " = %p\n", payload, (int64_t)val, jumpptr + val); + SCLogDebug("NEWVAL: payload %p + %" PRIi64 " = %p", payload, (int64_t)val, jumpptr + val); } else if (flags & DETECT_BYTEJUMP_END) { jumpptr = payload + payload_len + (int64_t)val; SCLogDebug( "NEWVAL: payload %p + %" PRIu32 " + %" PRIi64, payload, payload_len, (int64_t)val); } else { jumpptr = ptr + (int64_t)val + extbytes; - SCLogDebug("NEWVAL: ptr %p + %" PRIi64 " = %p\n", ptr, val, jumpptr); + SCLogDebug("NEWVAL: ptr %p + %" PRIi64 " = %p", ptr, val, jumpptr); } /* Validate that the jump location is still in the packet