From 5480b13b1c0b8b653ba4d5aa4249d93f76d79bf5 Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Wed, 31 Oct 2012 17:15:25 +0100 Subject: [PATCH] clearer error message when interface name to long Signed-off-by: Tomas Pospisek Signed-off-by: Daniel Lezcano --- src/lxc/confile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 87608ccde..4f816f55b 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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; }