[gnome-builder] foundry: more debug logging for devices
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] foundry: more debug logging for devices
- Date: Thu, 21 Feb 2019 23:55:48 +0000 (UTC)
commit 5d405929da2980a23ea85bfea4db5ec49e3fafcd
Author: Christian Hergert <chergert redhat com>
Date: Thu Feb 21 15:54:03 2019 -0800
foundry: more debug logging for devices
src/libide/foundry/ide-device-manager.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/foundry/ide-device-manager.c b/src/libide/foundry/ide-device-manager.c
index cdf415022..60b3bc528 100644
--- a/src/libide/foundry/ide-device-manager.c
+++ b/src/libide/foundry/ide-device-manager.c
@@ -684,8 +684,13 @@ ide_device_manager_action_device (IdeDeviceManager *self,
IDE_TRACE_MSG ("Setting device to \"%s\"", device_id);
- if ((device = ide_device_manager_get_device_by_id (self, device_id)))
- ide_device_manager_set_device (self, device);
+ if (!(device = ide_device_manager_get_device_by_id (self, device_id)))
+ {
+ g_debug ("No such device \"%s\"", device_id);
+ IDE_EXIT;
+ }
+
+ ide_device_manager_set_device (self, device);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]