]> git.ipfire.org Git - thirdparty/nftables.git/commit
utils: Cover for missing newline after BUG() messages
authorPhil Sutter <phil@nwl.cc>
Wed, 22 Oct 2025 13:38:21 +0000 (15:38 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 30 Oct 2025 16:34:40 +0000 (17:34 +0100)
commitf42ffcda1d730c8326cdc97b602394d7dae2c39b
tree86d5d101c337b57db7b2e7634a4b5cea0a7ac2f2
parent8720428253d2ee35f59a1d7921da6d2468877257
utils: Cover for missing newline after BUG() messages

Relieve callers from having to suffix their messages with a newline
escape sequence, have the macro append it to the format string instead.

This is mostly a fix for (the many) calls to BUG() without a newline
suffix. Adjust the previously correct ones since they emit an extra
newline now.

Signed-off-by: Phil Sutter <phil@nwl.cc>
17 files changed:
include/utils.h
src/datatype.c
src/erec.c
src/evaluate.c
src/expression.c
src/fib.c
src/intervals.c
src/json.c
src/mergesort.c
src/mnl.c
src/netlink.c
src/netlink_delinearize.c
src/netlink_linearize.c
src/optimize.c
src/rule.c
src/segtree.c
src/statement.c