summaryrefslogtreecommitdiff
path: root/src/libsystemd
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-04-14 16:05:53 +0200
committerTom Gundersen <teg@jklm.no>2015-04-14 16:19:37 +0200
commit85091685af65831f379580c75b40776c20e245ee (patch)
tree8469064b309a4124a9d178a7770153b2353b2fe9 /src/libsystemd
parentbba061662b0f759abb43bad60c9733305c191045 (diff)
sd-device: fix reading of subsystem
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/sd-device/sd-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c
index 7d52e3cc1d..d420bd0425 100644
--- a/src/libsystemd/sd-device/sd-device.c
+++ b/src/libsystemd/sd-device/sd-device.c
@@ -772,10 +772,10 @@ _public_ int sd_device_get_subsystem(sd_device *device, const char **ret) {
r = device_set_subsystem(device, "drivers");
else if (path_startswith(device->devpath, "/subsystem/") ||
path_startswith(device->devpath, "/class/") ||
- path_startswith(device->devpath, "/buss/"))
+ path_startswith(device->devpath, "/bus/"))
r = device_set_subsystem(device, "subsystem");
if (r < 0)
- return r;
+ return log_debug_errno(r, "sd-devcie: could not set subsystem for %s: %m", device->devpath);
device->subsystem_set = true;
}