From 866ee3682213789f85b877700457fdca05695a0e Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 3 Jul 2014 09:57:27 +0200 Subject: [PATCH] udev: net_setup_link - add a bit more logging --- src/udev/net/link-config.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git src/udev/net/link-config.c src/udev/net/link-config.c index 7a9d01b..b8650a6 100644 --- src/udev/net/link-config.c +++ 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; -- 1.7.9.2