X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fdevice.c;h=0b01718ad4bc0ada8f79aa56f51b201319ba6c89;hb=5dd9014faf58bf974352043fbddd3a8e9c3cd9d9;hp=8121dc95d1126e861dffa99bc67009bf13b2bbe5;hpb=07845c142b41083bc759a18e601123aa5f6864f1;p=elogind.git diff --git a/src/core/device.c b/src/core/device.c index 8121dc95d..0b01718ad 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -92,10 +92,10 @@ static void device_set_state(Device *d, DeviceState state) { d->state = state; if (state != old_state) - log_debug("%s changed %s -> %s", - UNIT(d)->id, - device_state_to_string(old_state), - device_state_to_string(state)); + log_debug_unit(UNIT(d)->id, + "%s changed %s -> %s", UNIT(d)->id, + device_state_to_string(old_state), + device_state_to_string(state)); unit_notify(UNIT(d), state_translation_table[old_state], state_translation_table[state], true); } @@ -269,11 +269,8 @@ static int device_update_unit(Manager *m, struct udev_device *dev, const char *p log_warning("SYSTEMD_ALIAS for %s is not a path, ignoring: %s", sysfs, e); free(e); } else { - - r = device_add_escaped_name(u, e); + device_update_unit(m, dev, e, false); free(e); - if (r < 0) - goto fail; } } }