confd: improve debug messages, include ifname everywhere

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-03-07 12:45:55 +01:00
committed by Mattias Walström
parent afdc6fe582
commit 6d65eff33d
+2 -2
View File
@@ -1169,7 +1169,7 @@ static int netdag_gen_afspec_add(struct dagger *net, struct lyd_node *dif,
" wrong type or name.", ifname);
return -ENOENT;
} else {
sr_session_set_error_message(net->session, "Unsupported interface type \"%s\"", iftype);
sr_session_set_error_message(net->session, "%s: unsupported interface type \"%s\"", ifname, iftype);
return -ENOSYS;
}
@@ -1194,7 +1194,7 @@ static int netdag_gen_afspec_set(struct dagger *net, struct lyd_node *dif,
if (!strcmp(iftype, "infix-if-type:veth"))
return 0;
ERROR("unsupported interface type \"%s\" for %s", iftype, ifname);
ERROR("%s: unsupported interface type \"%s\"", ifname, iftype);
return -ENOSYS;
}