]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: bwlim/config: fix missing '\n' after error messages
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Apr 2024 09:30:07 +0000 (11:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Apr 2024 15:34:36 +0000 (17:34 +0200)
Some bwlim error messages at parsing time were missing the trailing '\n'
in commit 2b6777021d ("MEDIUM: bwlim: Add support of bandwith limitation
at the stream level"). This commit can be backported wherever the commit
above is (likely as far as 2.7).

src/flt_bwlim.c

index 66c2883df5cc65afcdb721d631461efbd484eb53..c5078c8419000f3537084c1ba498507668963986 100644 (file)
@@ -219,26 +219,26 @@ static int bwlim_check(struct proxy *px, struct flt_conf *fconf)
                target = px->table;
 
        if (!target) {
-               ha_alert("Proxy %s : unable to find table '%s' referenced by bwlim filter '%s'",
+               ha_alert("Proxy %s : unable to find table '%s' referenced by bwlim filter '%s'\n",
                         px->id, conf->table.n ? conf->table.n : px->id, conf->name);
                return 1;
        }
 
        if ((conf->flags & BWLIM_FL_IN) && !target->data_ofs[STKTABLE_DT_BYTES_IN_RATE]) {
                ha_alert("Proxy %s : stick-table '%s' uses a data type incompatible with bwlim filter '%s'."
-                        " It must be 'bytes_in_rate'",
+                        " It must be 'bytes_in_rate'\n",
                         px->id, conf->table.n ? conf->table.n : px->id, conf->name);
                return 1;
        }
        else if ((conf->flags & BWLIM_FL_OUT) && !target->data_ofs[STKTABLE_DT_BYTES_OUT_RATE]) {
                ha_alert("Proxy %s : stick-table '%s' uses a data type incompatible with bwlim filter '%s'."
-                        " It must be 'bytes_out_rate'",
+                        " It must be 'bytes_out_rate'\n",
                         px->id, conf->table.n ? conf->table.n : px->id, conf->name);
                return 1;
        }
 
        if (!stktable_compatible_sample(conf->expr,  target->type)) {
-               ha_alert("Proxy %s : stick-table '%s' uses a key type incompatible with bwlim filter '%s'",
+               ha_alert("Proxy %s : stick-table '%s' uses a key type incompatible with bwlim filter '%s'\n",
                         px->id, conf->table.n ? conf->table.n : px->id, conf->name);
                return 1;
        }