summaryrefslogtreecommitdiff
path: root/src/core/device.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-05-07 16:15:00 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-05-08 13:25:39 +0200
commit6cc4da5eb5346b99a66675d81d7251b6bb631ac4 (patch)
treea5582480097dc20e2beccdf0f2b1f26218c8896e /src/core/device.c
parent20907e5d86166c0840687adb4cd99f9cfe638e98 (diff)
downloadsystemd-6cc4da5eb5346b99a66675d81d7251b6bb631ac4.tar.gz
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.
Diffstat (limited to 'src/core/device.c')
-rw-r--r--src/core/device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/device.c b/src/core/device.c
index d886119ffe..5bee0b5c16 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -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");