loopback: negate netlink error code before we pass it to strerror()

This commit is contained in:
Lennart Poettering 2010-05-20 19:08:37 +02:00
parent cd250a39da
commit 68d157d894

View File

@ -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;
}