diff options
author | Tom Gundersen <teg@jklm.no> | 2014-07-03 09:57:27 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-07-03 11:00:02 +0200 |
commit | 866ee3682213789f85b877700457fdca05695a0e (patch) | |
tree | 3c1e435736e5461048760a6af13a77e5c26a7ccb /src/udev/net | |
parent | ad0774e61e436d052f93549fc7fd367ade069286 (diff) |
udev: net_setup_link - add a bit more logging
Diffstat (limited to 'src/udev/net')
-rw-r--r-- | src/udev/net/link-config.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index 7a9d01bc18..b8650a6c6c 100644 --- 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; |