mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-20 13:36:39 +07:00
loopback: negate netlink error code before we pass it to strerror()
This commit is contained in:
parent
cd250a39da
commit
68d157d894
@ -218,7 +218,7 @@ static int read_response(int fd) {
|
||||
nlmsgerr = NLMSG_DATA(&response.header);
|
||||
|
||||
if (nlmsgerr->error < 0 && nlmsgerr->error != -EEXIST) {
|
||||
log_warning("Netlink failure for request %i: %s", response.header.nlmsg_seq, strerror(nlmsgerr->error));
|
||||
log_warning("Netlink failure for request %i: %s", response.header.nlmsg_seq, strerror(-nlmsgerr->error));
|
||||
return nlmsgerr->error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user