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:
parent
5cdb3f70eb
commit
6f50c94dfd
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user