From 68d157d894a988bd070307e0811cc78ffe7476c7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 20 May 2010 19:08:37 +0200 Subject: [PATCH] loopback: negate netlink error code before we pass it to strerror() --- src/loopback-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loopback-setup.c b/src/loopback-setup.c index 69b79e1b..74a12868 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; } -- 2.39.5