udev-event: include device name in error message one more place

This commit is contained in:
Yu Watanabe 2018-10-25 06:33:26 +09:00
parent 7606377e2c
commit e9343893f7

View file

@ -13,6 +13,7 @@
#include "alloc-util.h"
#include "device-private.h"
#include "device-util.h"
#include "fd-util.h"
#include "format-util.h"
#include "libudev-device-internal.h"
@ -613,7 +614,7 @@ int udev_event_spawn(struct udev_event *event,
r = device_get_properties_strv(event->dev->device, &envp);
if (r < 0)
return log_error_errno(r, "Failed to get device properties");
return log_device_error_errno(event->dev->device, r, "Failed to get device properties");
log_debug("Starting '%s'", cmd);