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
62 lines
2.3 KiB
Diff
62 lines
2.3 KiB
Diff
From 01d4590b775661ebc71c7b81b0c62ccd69395268 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Wed, 2 Jul 2014 15:13:29 +0200
|
|
Subject: [PATCH] udev: net_setup_link builtin should print the reason why
|
|
something fails
|
|
|
|
Let's tell users what is going wrong.
|
|
---
|
|
src/udev/udev-builtin-net_setup_link.c | 12 ++++++------
|
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git src/udev/udev-builtin-net_setup_link.c src/udev/udev-builtin-net_setup_link.c
|
|
index 3cd384e..6207269 100644
|
|
--- src/udev/udev-builtin-net_setup_link.c
|
|
+++ src/udev/udev-builtin-net_setup_link.c
|
|
@@ -43,17 +43,17 @@ static int builtin_net_setup_link(struct udev_device *dev, int argc, char **argv
|
|
r = link_config_get(ctx, dev, &link);
|
|
if (r < 0) {
|
|
if (r == -ENOENT) {
|
|
- log_debug("No matching link configuration found");
|
|
+ log_debug("No matching link configuration found.");
|
|
return EXIT_SUCCESS;
|
|
} else {
|
|
- log_error("Could not get link config");
|
|
+ log_error("Could not get link config: %s", strerror(-r));
|
|
return EXIT_FAILURE;
|
|
}
|
|
}
|
|
|
|
r = link_config_apply(ctx, link, dev, &name);
|
|
if (r < 0) {
|
|
- log_error("Could not apply link config to %s", udev_device_get_sysname(dev));
|
|
+ log_error("Could not apply link config to %s: %s", udev_device_get_sysname(dev), strerror(-r));
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
@@ -77,18 +77,18 @@ static int builtin_net_setup_link_init(struct udev *udev) {
|
|
if (r < 0)
|
|
return r;
|
|
|
|
- log_debug("Created link configuration context");
|
|
+ log_debug("Created link configuration context.");
|
|
return 0;
|
|
}
|
|
|
|
static void builtin_net_setup_link_exit(struct udev *udev) {
|
|
link_config_ctx_free(ctx);
|
|
ctx = NULL;
|
|
- log_debug("Unloaded link configuration context");
|
|
+ log_debug("Unloaded link configuration context.");
|
|
}
|
|
|
|
static bool builtin_net_setup_link_validate(struct udev *udev) {
|
|
- log_debug("Check if link configuration needs reloading");
|
|
+ log_debug("Check if link configuration needs reloading.");
|
|
if (!ctx)
|
|
return false;
|
|
|
|
--
|
|
1.7.9.2
|
|
|