summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-20 19:08:37 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-20 19:08:37 +0200
commit68d157d894a988bd070307e0811cc78ffe7476c7 (patch)
tree645f2935e8f6a3f01b0521ed52f05a5d5861ceda /src
parentcd250a39da8d5b9c0d220a07e765064638708fe9 (diff)
loopback: negate netlink error code before we pass it to strerror()
Diffstat (limited to 'src')
-rw-r--r--src/loopback-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loopback-setup.c b/src/loopback-setup.c
index 69b79e1b7c..74a1286807 100644
--- a/src/loopback-setup.c
+++ b/src/loopback-setup.c
@@ -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;
}