forked from pool/systemd
0e288fc9c5
- Add upstream patch 0001-machine-don-t-return-uninitialized-variable.patch - Port and add upstream patch 0002-vconsole-setup-run-setfont-before-loadkeys.patch - Rename 0001-udev-net_setup_link-add-a-bit-more-logging.patch to 1048-udev-net_setup_link-add-a-bit-more-logging.patch - Port and add upstream patches 0001-udev-net_setup_link-add-a-bit-more-logging.patch 0003-namespace-make-sure-tmp-var-tmp-and-dev-are-writable.patch 0002-namespace-fix-uninitialized-memory-access.patch - Add upstream patches 0001-architecture-Add-tilegx.patch 0002-architecture-Add-cris.patch 0003-arch-add-crisv32-to-uname-check.patch 0004-architecture-remove-cris-from-uname-list.patch - Add upstream patches 0006-hwdb-update.patch 0007-hwdb-Update-database-of-Bluetooth-company-identifier.patch - Add upstream patches 0001-parse_uid-return-ENXIO-for-1-uids.patch 0002-util-when-unescaping-strings-don-t-allow-smuggling-i.patch 0003-localed-consider-an-unset-model-as-a-wildcard.patch 0004-sd-bus-when-an-event-loop-terminates-explicitly-clos.patch OBS-URL: https://build.opensuse.org/request/show/239780 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=191
40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From 866ee3682213789f85b877700457fdca05695a0e Mon Sep 17 00:00:00 2001
|
|
From: Tom Gundersen <teg@jklm.no>
|
|
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
|
|
|