[gnome-multi-writer] trivial: Add some more debugging when we ignore disks
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-multi-writer] trivial: Add some more debugging when we ignore disks
- Date: Thu, 15 Jan 2015 13:27:11 +0000 (UTC)
commit 3fcc0bd9f5259535db828890928c77a92a7bcd9e
Author: Richard Hughes <richard hughsie com>
Date: Tue Jan 13 16:13:30 2015 +0000
trivial: Add some more debugging when we ignore disks
src/gmw-main.c | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/src/gmw-main.c b/src/gmw-main.c
index 46922fa..5ba27c0 100644
--- a/src/gmw-main.c
+++ b/src/gmw-main.c
@@ -1319,22 +1319,30 @@ gmw_udisks_object_add (GmwPrivate *priv, GDBusObject *dbus_object)
_cleanup_object_unref_ UDisksObject *udisks_object = NULL;
/* is this the kind of device that interests us? */
+ object_path = g_dbus_object_get_object_path (dbus_object);
iface_block = g_dbus_object_get_interface (dbus_object, "org.freedesktop.UDisks2.Block");
- if (iface_block == NULL)
+ if (iface_block == NULL) {
+ g_debug ("%s has no org.freedesktop.UDisks2.Block", object_path);
return FALSE;
+ }
iface_part = g_dbus_object_get_interface (dbus_object, "org.freedesktop.UDisks2.Partition");
- if (iface_part != NULL)
+ if (iface_part != NULL) {
+ g_debug ("%s has no org.freedesktop.UDisks2.Partition", object_path);
return FALSE;
+ }
iface_fs = g_dbus_object_get_interface (dbus_object, "org.freedesktop.UDisks2.Filesystem");
- if (iface_fs != NULL)
+ if (iface_fs != NULL) {
+ g_debug ("%s has no org.freedesktop.UDisks2.Filesystem", object_path);
return FALSE;
+ }
/* get the block device */
- object_path = g_dbus_object_get_object_path (dbus_object);
udisks_object = udisks_client_get_object (priv->udisks_client, object_path);
udisks_block = udisks_object_get_block (udisks_object);
- if (udisks_block == NULL)
+ if (udisks_block == NULL) {
+ g_debug ("%s has no block device", object_path);
return FALSE;
+ }
/* ignore system devices */
block_path = udisks_block_get_device (udisks_block);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]