]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/bytemath: fix newline in debug message
authorVictor Julien <vjulien@oisf.net>
Wed, 8 Mar 2023 14:22:20 +0000 (15:22 +0100)
committerVictor Julien <vjulien@oisf.net>
Fri, 14 Apr 2023 08:43:31 +0000 (10:43 +0200)
src/detect-bytejump.c
src/detect-bytemath.c
src/detect-bytetest.c

index 2518cf94cc2f58a5ddadd92fc8c83b622cfb0f3e..f20c31593ac87a27f1cc1389b09fb2aaa4f00d66 100644 (file)
@@ -488,7 +488,7 @@ static DetectBytejumpData *DetectBytejumpParse(DetectEngineCtx *de_ctx, const ch
     } else {
         if (nbytes > 8) {
             SCLogError("Cannot test more than 8 bytes "
-                       "without \"string\": %s\n",
+                       "without \"string\": %s",
                     optstr);
             goto error;
         }
index 0d7714b0949acfbd6fb3cc17727738bd6b8557a1..6d2a65aaefe7945c739feb303dc3f73c6fdb036d 100644 (file)
@@ -339,9 +339,7 @@ static int DetectByteMathSetup(DetectEngineCtx *de_ctx, Signature *s, const char
     if (rvalue != NULL) {
         DetectByteIndexType index;
         if (!DetectByteRetrieveSMVar(rvalue, s, &index)) {
-            SCLogError("unknown byte_ keyword var "
-                       "seen in byte_math - %s\n",
-                    rvalue);
+            SCLogError("unknown byte_ keyword var seen in byte_math - %s", rvalue);
             goto error;
         }
         data->rvalue = index;
index fb45105ae9bd85071fd07dfde9dbce5225b3f649..72735452990fb9a4eb02f5b2735d7ae4ce456545 100644 (file)
@@ -597,7 +597,7 @@ static int DetectBytetestSetup(DetectEngineCtx *de_ctx, Signature *s, const char
         DetectByteIndexType index;
         if (!DetectByteRetrieveSMVar(value, s, &index)) {
             SCLogError("Unknown byte_extract var "
-                       "seen in byte_test - %s\n",
+                       "seen in byte_test - %s",
                     value);
             goto error;
         }
@@ -611,7 +611,7 @@ static int DetectBytetestSetup(DetectEngineCtx *de_ctx, Signature *s, const char
         DetectByteIndexType index;
         if (!DetectByteRetrieveSMVar(offset, s, &index)) {
             SCLogError("Unknown byte_extract var "
-                       "seen in byte_test - %s\n",
+                       "seen in byte_test - %s",
                     offset);
             goto error;
         }