Commit 72cc323c authored by Christian Kellner's avatar Christian Kellner
Browse files

manager: use new helper to get the device uid

Instead of directly accessing the sysfs attribute, use the new
common helper to get the unique_id for the device.
parent 697f5374
Pipeline #235784 passed with stage
in 7 minutes and 12 seconds
......@@ -904,7 +904,7 @@ manager_domain_ensure (BoltManager *mgr,
if (dom == NULL)
return NULL;
uid = udev_device_get_sysattr_value (host, "unique_id");
uid = bolt_sysfs_device_get_unique_id (host, NULL);
/* check if we have a stored domain with a matching uid
* of the host device, if so then we have just connected
......@@ -1805,7 +1805,7 @@ handle_udev_device_event (BoltManager *mgr,
/* filter sysfs devices (e.g. the domain) that don't have
* the unique_id attribute */
uid = udev_device_get_sysattr_value (device, "unique_id");
uid = bolt_sysfs_device_get_unique_id (device, NULL);
if (uid == NULL)
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment