mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 08:03:33 +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:
parent
a24c5a40dc
commit
5480b13b1c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user