diff options
Diffstat (limited to 'src/core/device.c')
-rw-r--r-- | src/core/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/device.c b/src/core/device.c index 2c56c5a2d2..c09ea6c197 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -310,7 +310,7 @@ static int device_setup_unit(Manager *m, struct udev_device *dev, const char *pa r = unit_name_from_path(path, ".device", &e); if (r < 0) - return log_unit_error_errno(u->id, r, "Failed to generate device name: %m"); + return log_error_errno(r, "Failed to generate unit name from device path: %m"); u = manager_get_unit(m, e); |