From: Victor Julien Date: Tue, 22 Nov 2022 13:14:17 +0000 (+0100) Subject: src: unify how warnings specify ticket id's X-Git-Tag: suricata-7.0.0-rc1~350 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2edfff7a0c1711bb471777f9a6c9f166e69587ef;p=thirdparty%2Fsuricata.git src: unify how warnings specify ticket id's --- diff --git a/src/detect-engine-address.c b/src/detect-engine-address.c index 4d5bc434f0..ee54b90722 100644 --- a/src/detect-engine-address.c +++ b/src/detect-engine-address.c @@ -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; } diff --git a/src/output-json-stats.c b/src/output-json-stats.c index 7a3a901329..7ad3b22ef3 100644 --- a/src/output-json-stats.c +++ b/src/output-json-stats.c @@ -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."); } diff --git a/src/runmodes.c b/src/runmodes.c index 9278652abd..a2fd99ab0a 100644 --- a/src/runmodes.c +++ b/src/runmodes.c @@ -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, diff --git a/src/source-pfring.c b/src/source-pfring.c index acd3ab8ef8..bb30df619e 100644 --- a/src/source-pfring.c +++ b/src/source-pfring.c @@ -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; } } diff --git a/src/util-luajit.c b/src/util-luajit.c index 5ecaf9447e..949cf618fe 100644 --- a/src/util-luajit.c +++ b/src/util-luajit.c @@ -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++;