From: Lennart Poettering Date: Thu, 20 May 2010 17:08:37 +0000 (+0200) Subject: loopback: negate netlink error code before we pass it to strerror() X-Git-Tag: 0.git+20100605+dfd8ee-1~11^2^2~36 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d157d894a988bd070307e0811cc78ffe7476c7;p=systemd loopback: negate netlink error code before we pass it to strerror() --- 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; }