chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build-sys: fix make distcheck
[elogind.git]
/
device.c
diff --git
a/device.c
b/device.c
index 70936808bec483712be3aa02b505cd12035e006d..e67d0a6c2d71e1d2ec83db8e3fcdc854dd2e41e4 100644
(file)
--- a/
device.c
+++ b/
device.c
@@
-248,9
+248,12
@@
static int device_process_new_device(Manager *m, struct udev_device *dev, bool u
(model = udev_device_get_property_value(dev, "ID_MODEL"))) {
if ((r = unit_set_description(u, model)) < 0)
goto fail;
(model = udev_device_get_property_value(dev, "ID_MODEL"))) {
if ((r = unit_set_description(u, model)) < 0)
goto fail;
- } else if (dn)
+ } else if (dn)
{
if ((r = unit_set_description(u, dn)) < 0)
goto fail;
if ((r = unit_set_description(u, dn)) < 0)
goto fail;
+ } else
+ if ((r = unit_set_description(u, sysfs)) < 0)
+ goto fail;
if (wants) {
FOREACH_WORD(w, l, wants, state) {
if (wants) {
FOREACH_WORD(w, l, wants, state) {