1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

Wrong index in error message

This commit is contained in:
Sam Lunt 2021-03-18 14:50:30 -05:00 committed by Luca Boccassi
parent 5cdb3f70eb
commit 6f50c94dfd

View File

@ -2510,8 +2510,8 @@ static int link_up_down(int argc, char *argv[], void *userdata) {
if (r < 0) {
char ifname[IF_NAMESIZE + 1];
return log_error_errno(r, "Failed to %s interface %s: %m",
argv[1], format_ifname_full(index, ifname, FORMAT_IFNAME_IFINDEX));
return log_error_errno(r, "Failed to bring %s interface %s: %m",
argv[0], format_ifname_full(index, ifname, FORMAT_IFNAME_IFINDEX));
}
}