]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
src: unify how warnings specify ticket id's
authorVictor Julien <vjulien@oisf.net>
Tue, 22 Nov 2022 13:14:17 +0000 (14:14 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 22 Nov 2022 13:14:57 +0000 (14:14 +0100)
src/detect-engine-address.c
src/output-json-stats.c
src/runmodes.c
src/source-pfring.c
src/util-luajit.c

index 4d5bc434f0b51210bde6e1690d412cbf8ea6f768..ee54b907228f21459e69dbee17d962d03a9b406b 100644 (file)
@@ -462,7 +462,7 @@ static int DetectAddressParseString(DetectAddress *dd, const char *str)
                 if (cidr < 0) {
                     SCLogError(SC_ERR_INVALID_SIGNATURE,
                             "netmask \"%s\" is not usable. Only netmasks that are compatible with "
-                            "CIDR notation are supported. See #5168.",
+                            "CIDR notation are supported. See ticket #5168.",
                             mask);
                     goto error;
                 }
index 7a3a901329bd01a5ea8558f738b599c16ed32448..7ad3b22ef39b808fba6e0429cd6ced85195fb9f3 100644 (file)
@@ -401,8 +401,9 @@ static OutputInitResult OutputStatsLogInitSub(ConfNode *conf, OutputCtx *parent_
 
     if (stats_decoder_events &&
             strcmp(stats_decoder_events_prefix, "decoder") == 0) {
-        SCLogWarning(SC_WARN_EVE_MISSING_EVENTS, "eve.stats will not display "
-                "all decoder events correctly. See #2225. Set a prefix in "
+        SCLogWarning(SC_WARN_EVE_MISSING_EVENTS,
+                "eve.stats will not display "
+                "all decoder events correctly. See ticket #2225. Set a prefix in "
                 "stats.decoder-events-prefix.");
     }
 
index 9278652abd43f4acfa8adfb9e598a3fe2647512c..a2fd99ab0ab19fe9c7d50bd1298c258c5b08ccf3 100644 (file)
@@ -797,18 +797,16 @@ void RunModeInitializeOutputs(void)
         }
 
         if (strcmp(output->val, "file-log") == 0) {
-            SCLogWarning(SC_ERR_NOT_SUPPORTED,
-                    "file-log is no longer supported,"
-                    " use eve.files instead "
-                    "(see https://redmine.openinfosecfoundation.org/issues/2376"
-                    " for an explanation)");
+            SCLogWarning(SC_ERR_NOT_SUPPORTED, "file-log is no longer supported,"
+                                               " use eve.files instead "
+                                               "(see ticket #2376"
+                                               " for an explanation)");
             continue;
         } else if (strncmp(output->val, "unified-", sizeof("unified-") - 1) == 0) {
-            SCLogWarning(SC_ERR_NOT_SUPPORTED,
-                    "Unified1 is no longer supported,"
-                    " use Unified2 instead "
-                    "(see https://redmine.openinfosecfoundation.org/issues/353"
-                    " for an explanation)");
+            SCLogWarning(SC_ERR_NOT_SUPPORTED, "Unified1 is no longer supported,"
+                                               " use Unified2 instead "
+                                               "(see ticket #353"
+                                               " for an explanation)");
             continue;
         } else if (strncmp(output->val, "unified2-", sizeof("unified2-") - 1) == 0) {
             SCLogWarning(SC_ERR_NOT_SUPPORTED,
index acd3ab8ef894cdd12a1e3dedfa7eac467538e4fc..bb30df619e5c7dba08812c1d5e6e5b6ff3a5b70b 100644 (file)
@@ -262,7 +262,7 @@ static inline void PfringProcessPacket(void *user, struct pfring_pkthdr *h, Pack
 
         if (!ptv->vlan_hdr_warned) {
             SCLogWarning(SC_ERR_PF_RING_VLAN, "no VLAN header in the raw "
-                    "packet. See #2355.");
+                                              "packet. See ticket #2355.");
             ptv->vlan_hdr_warned = true;
         }
     }
index 5ecaf9447e455bfd03156db71112ea01fa2c921c..949cf618fe01680b6bd540aa46cdab3d2e9856c3 100644 (file)
@@ -109,9 +109,9 @@ void LuajitFreeStatesPool(void)
     pthread_mutex_lock(&luajit_states_lock);
     if (luajit_states_cnt_max > luajit_states_size) {
         SCLogNotice("luajit states used %d is bigger than pool size %d. Set "
-                "luajit.states to %d to avoid memory issues. "
-                "See #1577 and #1955.", luajit_states_cnt_max, luajit_states_size,
-                luajit_states_cnt_max);
+                    "luajit.states to %d to avoid memory issues. "
+                    "See tickets #1577 and #1955.",
+                luajit_states_cnt_max, luajit_states_size, luajit_states_cnt_max);
     }
     PoolFree(luajit_states);
     luajit_states = NULL;
@@ -128,9 +128,11 @@ lua_State *LuajitGetState(void)
         s = (lua_State *)PoolGet(luajit_states);
         if (s != NULL) {
             if (luajit_states_cnt == luajit_states_size) {
-                SCLogWarning(SC_WARN_LUA_SCRIPT, "luajit states pool size %d "
+                SCLogWarning(SC_WARN_LUA_SCRIPT,
+                        "luajit states pool size %d "
                         "reached. Increase luajit.states config option. "
-                        "See #1577 and #1955", luajit_states_size);
+                        "See tickets #1577 and #1955",
+                        luajit_states_size);
             }
 
             luajit_states_cnt++;