Commit 20c54066 authored by Christof Schulze's avatar Christof Schulze Committed by Juliusz Chroboczek

interface: clarify error message when adding existing interface

When adding a network interface that is already known to babeld, an
error message is displayed and the new configuration is ignored. This
message is adjusted to include the name of the interface being added so
it is visible from the logs without context
parent 62a71233
...@@ -68,8 +68,8 @@ add_interface(char *ifname, struct interface_conf *if_conf) ...@@ -68,8 +68,8 @@ add_interface(char *ifname, struct interface_conf *if_conf)
if(strcmp(ifp->name, ifname) == 0) { if(strcmp(ifp->name, ifname) == 0) {
if(if_conf) if(if_conf)
fprintf(stderr, fprintf(stderr,
"Warning: attempting to add existing interface, " "Warning: attempting to add existing interface (%s), "
"new configuration ignored.\n"); "new configuration ignored.\n", ifname);
return ifp; return ifp;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment