Make ip6tunnel print an error message as well. While there, get rid of
unnecessary line breaking.
Signed-off-by: Phil Sutter <phil@nwl.cc>
}
if (medium[0]) {
p->link = ll_name_to_index(medium);
- if (p->link == 0)
+ if (p->link == 0) {
+ fprintf(stderr, "Cannot find device \"%s\"\n", medium);
return -1;
+ }
}
return 0;
}
if (medium[0]) {
p->link = if_nametoindex(medium);
if (p->link == 0) {
- fprintf(stderr, "Cannot find device \"%s\"\n",
- medium);
+ fprintf(stderr, "Cannot find device \"%s\"\n", medium);
return -1;
}
}