chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
78c390d
)
loopback-setup: be more verbose when something is failing
author
Lennart Poettering
<lennart@poettering.net>
Thu, 20 May 2010 17:01:14 +0000
(19:01 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 20 May 2010 17:01:14 +0000
(19:01 +0200)
src/loopback-setup.c
patch
|
blob
|
history
diff --git
a/src/loopback-setup.c
b/src/loopback-setup.c
index e37bf4190bd010d2207130952d48d447f6f80b05..69b79e1b7c2ffa7e28ef9568cb230e73c7da1051 100644
(file)
--- 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);
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 nlmsgerr->error;
+ }
return response.header.nlmsg_seq;
}
return response.header.nlmsg_seq;
}