]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
netlink: wrap libnl object dumping in #ifdef DEBUG
authorPatrick McHardy <kaber@trash.net>
Wed, 18 Mar 2009 05:28:28 +0000 (06:28 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 18 Mar 2009 05:28:28 +0000 (06:28 +0100)
Signed-off-by: Patrick McHardy <kaber@trash.net>
src/netlink_linearize.c

index fcb111c6157f6f2ebae96b638c50ad1836340d9b..ec551b60f92583656d1267ab9d1619be14b1e759 100644 (file)
@@ -715,6 +715,8 @@ int netlink_linearize_rule(struct netlink_ctx *ctx, struct nfnl_nft_rule *nlr,
        list_for_each_entry(stmt, &rule->stmts, list)
                netlink_gen_stmt(&lctx, stmt);
 
+#ifdef DEBUG
        netlink_dump_object((struct nl_object *)nlr);
+#endif
        return 0;
 }