]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
nftables: shorten "could not process rule in batch" message
authorPatrick McHardy <kaber@trash.net>
Fri, 10 Jan 2014 09:28:37 +0000 (09:28 +0000)
committerPatrick McHardy <kaber@trash.net>
Fri, 10 Jan 2014 09:28:37 +0000 (09:28 +0000)
Remove the "in batch" part, it makes most messages exceed a single line, the
user doesn't care about this and we process even single rules in "batches".

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/main.c

index 32a991a65a2fa6ca6a62cba848762213151752c8..e8be423dc4179f336b12d73172c0f2e9379b5496 100644 (file)
@@ -183,8 +183,8 @@ static int nft_netlink(struct parser_state *state, struct list_head *msgs)
                        if (err->seqnum == cmd->seqnum ||
                            err->seqnum == batch_seqnum) {
                                netlink_io_error(&ctx, &cmd->location,
-                                       "Could not process rule in batch: %s",
-                                       strerror(err->err));
+                                                "Could not process rule: %s",
+                                                strerror(err->err));
                                if (err->seqnum == cmd->seqnum) {
                                        mnl_err_list_free(err);
                                        break;