]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: Fix int type in log message
authorThomas Parrott <thomas.parrott@canonical.com>
Tue, 9 Jun 2020 12:03:37 +0000 (13:03 +0100)
committerThomas Parrott <thomas.parrott@canonical.com>
Tue, 9 Jun 2020 13:05:16 +0000 (14:05 +0100)
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/network.c

index f206be55bca3210f023c6eb801968993d26cb59e..058469b1ea1c87f9996449e4c9f5495b6c6353e8 100644 (file)
@@ -445,12 +445,11 @@ static int lxc_ovs_setup_bridge_vlan_exec(void *data)
 
                rc = snprintf(buf, sizeof(buf), "%u", args->vlan_id);
                if (rc < 0 || (size_t)rc >= sizeof(buf))
-                       return log_error_errno(-1, EINVAL, "Failed to parse ovs bridge vlan \"%u\"", args->vlan_id);
+                       return log_error_errno(-1, EINVAL, "Failed to parse ovs bridge vlan \"%d\"", args->vlan_id);
 
                tag = must_concat(NULL, "tag=", buf, (char *)NULL);
        }
 
-
        if (args->trunks)
                trunks = must_concat(NULL, "trunks=", args->trunks, (char *)NULL);