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
(from parent 1:
ad0774e
)
udev: net_setup_link - add a bit more logging
author
Tom Gundersen
<teg@jklm.no>
Thu, 3 Jul 2014 07:57:27 +0000
(09:57 +0200)
committer
Tom Gundersen
<teg@jklm.no>
Thu, 3 Jul 2014 09:00:02 +0000
(11:00 +0200)
src/udev/net/link-config.c
patch
|
blob
|
history
diff --git
a/src/udev/net/link-config.c
b/src/udev/net/link-config.c
index 7a9d01bc184df118d0cf76fa9eb66395406d1f58..b8650a6c6c315cda23a4aecf6e3cd7b7f1d688b2 100644
(file)
--- a/
src/udev/net/link-config.c
+++ b/
src/udev/net/link-config.c
@@
-92,14
+92,20
@@
static int link_config_ctx_connect(link_config_ctx *ctx) {
if (ctx->ethtool_fd == -1) {
r = ethtool_connect(&ctx->ethtool_fd);
- if (r < 0)
+ if (r < 0) {
+ log_warning("link_config: could not connect to ethtool: %s",
+ strerror(-r));
return r;
+ }
}
if (!ctx->rtnl) {
r = sd_rtnl_open(&ctx->rtnl, 0);
- if (r < 0)
+ if (r < 0) {
+ log_warning("link_config: could not connect to rtnl: %s",
+ strerror(-r));
return r;
+ }
}
return 0;