firewall3: Fix some format string problems
[project/firewall3.git] / defaults.c
index 44fe6299a6bffa46474be0c7829e994d461f4426..f03765c6be17e058eea110b312b3e66930d75024 100644 (file)
@@ -103,7 +103,7 @@ check_kmod(struct uci_element *e, bool *module, const char *name)
                return;
        }
 
-       warn_elem(e, sprintf("requires module %s but missing kernel support, disabling", name));
+       warn_elem(e, "requires not available kernel module %s, disabling", name);
        *module = false;
 }
 
@@ -393,7 +393,7 @@ set_default(const char *name, int set)
 
        snprintf(path, sizeof(path), "/proc/sys/net/ipv4/tcp_%s", name);
 
-       info(" * Set tcp_%s to %s", name, set ? "on" : "off", name);
+       info(" * Set tcp_%s to %s", name, set ? "on" : "off");
 
        if (!(f = fopen(path, "w")))
        {