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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user