diff options
| author | Phil Sutter <phil@nwl.cc> | 2025-10-22 15:38:21 +0200 |
|---|---|---|
| committer | Phil Sutter <phil@nwl.cc> | 2025-10-30 17:34:40 +0100 |
| commit | f42ffcda1d730c8326cdc97b602394d7dae2c39b (patch) | |
| tree | 86d5d101c337b57db7b2e7634a4b5cea0a7ac2f2 /src/optimize.c | |
| parent | 8720428253d2ee35f59a1d7921da6d2468877257 (diff) | |
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>
Diffstat (limited to 'src/optimize.c')
| -rw-r--r-- | src/optimize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/optimize.c b/src/optimize.c index ffc06480..17084a84 100644 --- a/src/optimize.c +++ b/src/optimize.c @@ -1181,7 +1181,7 @@ static void rule_optimize_print(struct output_ctx *octx, case INDESC_NETLINK: break; default: - BUG("invalid input descriptor type %u\n", indesc->type); + BUG("invalid input descriptor type %u", indesc->type); } print_location(octx->error_fp, indesc, loc); |
