mirror of
git://github.com/lxc/lxc
synced 2025-08-31 11:19:41 +00:00
clearer error message when interface name to long
Signed-off-by: Tomas Pospisek <tpo_deb@sourcepole.ch> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
@@ -214,7 +214,8 @@ static struct lxc_netdev *network_netdev(const char *key, const char *value,
|
||||
static int network_ifname(char **valuep, char *value)
|
||||
{
|
||||
if (strlen(value) >= IFNAMSIZ) {
|
||||
ERROR("invalid interface name: %s", value);
|
||||
ERROR("interface name '%s' too long (>%d)\n",
|
||||
value, IFNAMSIZ - 1);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user