aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--brctl/brctl_cmd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c
index a05d5b1..c93dd55 100644
--- a/brctl/brctl_cmd.c
+++ b/brctl/brctl_cmd.c
@@ -99,7 +99,7 @@ static int br_cmd_addif(int argc, char *const* argv)
if (if_nametoindex(ifname) == 0)
fprintf(stderr, "interface %s does not exist!\n", ifname);
else
- fprintf(stderr, "bridge %s does not exist\n", brname);
+ fprintf(stderr, "bridge %s does not exist!\n", brname);
break;
case EBUSY:
@@ -139,8 +139,10 @@ static int br_cmd_delif(int argc, char *const* argv)
continue;
case ENODEV:
- fprintf(stderr, "interface %s does not exist!\n",
- ifname);
+ if (if_nametoindex(ifname) == 0)
+ fprintf(stderr, "interface %s does not exist!\n", ifname);
+ else
+ fprintf(stderr, "bridge %s does not exist!\n", brname);
break;
case EINVAL: