mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +03:00
loopback-setup: be more verbose when something is failing
This commit is contained in:
parent
78c390dee1
commit
86700cf7ad
@ -217,8 +217,10 @@ static int read_response(int fd) {
|
||||
|
||||
nlmsgerr = NLMSG_DATA(&response.header);
|
||||
|
||||
if (nlmsgerr->error < 0 && nlmsgerr->error != -EEXIST)
|
||||
if (nlmsgerr->error < 0 && nlmsgerr->error != -EEXIST) {
|
||||
log_warning("Netlink failure for request %i: %s", response.header.nlmsg_seq, strerror(nlmsgerr->error));
|
||||
return nlmsgerr->error;
|
||||
}
|
||||
|
||||
return response.header.nlmsg_seq;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user