diff options
author | Eric Caruso <ejcaruso@chromium.org> | 2021-03-16 11:39:15 -0700 |
---|---|---|
committer | Eric Caruso <ejcaruso@chromium.org> | 2021-03-16 11:39:15 -0700 |
commit | c7b1ee9c941fb7fbdd94fe17ec927caf392ff1e0 (patch) | |
tree | 57ed4f56be9607738177fdc87308d8b3fe71f3ec /src | |
parent | fdfd4b270aa3bb31185feb833691f134c887f869 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-base-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mm-base-manager.c b/src/mm-base-manager.c index 4e866f8a..366fcc10 100644 --- a/src/mm-base-manager.c +++ b/src/mm-base-manager.c @@ -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. |