summaryrefslogtreecommitdiffstats
path: root/src/login
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-10-18 21:46:24 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-10-18 21:46:24 +0200
commit17bf3c550deb11d8a7c383f7135f56ebbf7affec (patch)
tree516fcd38bf42ae619a5f0ce2af0b2d0d712aea1e /src/login
parentudev: drop redundant description setting (diff)
downloadsystemd-17bf3c550deb11d8a7c383f7135f56ebbf7affec.tar.xz
systemd-17bf3c550deb11d8a7c383f7135f56ebbf7affec.zip
tree-wide: set description for device manager
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/login/logind.c b/src/login/logind.c
index 95c5526711..cdca5ca58c 100644
--- a/src/login/logind.c
+++ b/src/login/logind.c
@@ -809,7 +809,7 @@ static int manager_connect_udev(Manager *m) {
if (r < 0)
return r;
- (void) sd_event_source_set_description(sd_device_monitor_get_event_source(m->device_seat_monitor), "logind-seat-monitor");
+ (void) sd_device_monitor_set_description(m->device_seat_monitor, "seat");
r = sd_device_monitor_new(&m->device_monitor);
if (r < 0)
@@ -835,7 +835,7 @@ static int manager_connect_udev(Manager *m) {
if (r < 0)
return r;
- (void) sd_event_source_set_description(sd_device_monitor_get_event_source(m->device_monitor), "logind-device-monitor");
+ (void) sd_device_monitor_set_description(m->device_monitor, "input,graphics,drm");
/* Don't watch keys if nobody cares */
if (!manager_all_buttons_ignored(m)) {
@@ -859,7 +859,7 @@ static int manager_connect_udev(Manager *m) {
if (r < 0)
return r;
- (void) sd_event_source_set_description(sd_device_monitor_get_event_source(m->device_button_monitor), "logind-button-monitor");
+ (void) sd_device_monitor_set_description(m->device_button_monitor, "button");
}
/* Don't bother watching VCSA devices, if nobody cares */
@@ -881,7 +881,7 @@ static int manager_connect_udev(Manager *m) {
if (r < 0)
return r;
- (void) sd_event_source_set_description(sd_device_monitor_get_event_source(m->device_vcsa_monitor), "logind-vcsa-monitor");
+ (void) sd_device_monitor_set_description(m->device_vcsa_monitor, "vcsa");
}
return 0;