From 86700cf7adea335db27215a8be6d480c99ce4344 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 20 May 2010 19:01:14 +0200 Subject: [PATCH] loopback-setup: be more verbose when something is failing --- src/loopback-setup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/loopback-setup.c b/src/loopback-setup.c index e37bf419..69b79e1b 100644 --- a/src/loopback-setup.c +++ b/src/loopback-setup.c @@ -217,8 +217,10 @@ static int read_response(int fd) { nlmsgerr = NLMSG_DATA(&response.header); - if (nlmsgerr->error < 0 && nlmsgerr->error != -EEXIST) + if (nlmsgerr->error < 0 && nlmsgerr->error != -EEXIST) { + log_warning("Netlink failure for request %i: %s", response.header.nlmsg_seq, strerror(nlmsgerr->error)); return nlmsgerr->error; + } return response.header.nlmsg_seq; } -- 2.39.5