mm-base-manager: split assertion

This allows us to know which of the subsystem or name for a
removed device is triggering the assertion from just a stack
trace that contains line information.
This commit is contained in:
Eric Caruso
2021-03-16 11:39:15 -07:00
parent fdfd4b270a
commit c7b1ee9c94
+2 -1
View File
@@ -236,7 +236,8 @@ device_removed (MMBaseManager *self,
{
g_autoptr(MMDevice) device = NULL;
g_assert (subsystem && name);
g_assert (subsystem);
g_assert (name);
device = find_device_by_port_name (self, subsystem, name);
if (!device) {
/* If the device was inhibited and the port is gone, untrack it.