core/device: Log on every event received from udev

We already debug log on device unit state changes but additionally,
let's debug log for every event received from udev as well.
This commit is contained in:
Daan De Meyer
2022-05-08 13:25:39 +02:00
parent 20907e5d86
commit 6cc4da5eb5
+2
View File
@@ -896,6 +896,8 @@ static int device_dispatch_io(sd_device_monitor *monitor, sd_device *dev, void *
assert(dev);
log_device_uevent(dev, "Processing udev action");
r = sd_device_get_syspath(dev, &sysfs);
if (r < 0) {
log_device_error_errno(dev, r, "Failed to get device sys path: %m");