netfilter: use audit_log()
[linux-2.6-microblaze.git] / net / bridge / netfilter / ebtables.c
index 9c6e619..54c7ef4 100644 (file)
@@ -1069,15 +1069,10 @@ static int do_replace_finish(struct net *net, struct ebt_replace *repl,
 
 #ifdef CONFIG_AUDIT
        if (audit_enabled) {
-               struct audit_buffer *ab;
-
-               ab = audit_log_start(current->audit_context, GFP_KERNEL,
-                                    AUDIT_NETFILTER_CFG);
-               if (ab) {
-                       audit_log_format(ab, "table=%s family=%u entries=%u",
-                                        repl->name, AF_BRIDGE, repl->nentries);
-                       audit_log_end(ab);
-               }
+               audit_log(current->audit_context, GFP_KERNEL,
+                         AUDIT_NETFILTER_CFG,
+                         "table=%s family=%u entries=%u",
+                         repl->name, AF_BRIDGE, repl->nentries);
        }
 #endif
        return ret;