]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/bytejump: fix debug messages
authorVictor Julien <vjulien@oisf.net>
Thu, 5 Oct 2023 13:46:18 +0000 (15:46 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 1 Dec 2023 13:55:42 +0000 (14:55 +0100)
Remove newlines.

src/detect-bytejump.c

index 37c01ed8c30bcd8f97e21dd79c007e3b3d9076fe..3e7ae4f5e0007497d99489fda3b139b6a6744ee5 100644 (file)
@@ -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