summaryrefslogtreecommitdiffstats
path: root/src/nautilus-gdu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-gdu.c')
-rw-r--r--src/nautilus-gdu.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/nautilus-gdu.c b/src/nautilus-gdu.c
index 39c396b..a7a06cd 100644
--- a/src/nautilus-gdu.c
+++ b/src/nautilus-gdu.c
@@ -111,6 +111,7 @@ find_presentable_from_file (NautilusFileInfo *nautilus_file)
}
}
+ g_print ("nautilus-gdu: matching device_file = '%s', mount_path = '%s'\n", device_file, mount_path);
if (device_file)
presentable = find_presentable_from_device_path (device_file);
@@ -118,12 +119,15 @@ find_presentable_from_file (NautilusFileInfo *nautilus_file)
if (mount_path)
presentable = find_presentable_from_mount_path (mount_path);
- if (device_file)
- g_free (device_file);
- if (mount_path)
- g_free (mount_path);
+ g_free (device_file);
+ g_free (mount_path);
g_object_unref (file);
+ if (presentable)
+ g_print ("nautilus-gdu: find_presentable_from_file: found presentable '%s'\n", gdu_presentable_get_name (presentable));
+ else
+ g_print ("nautilus-gdu: find_presentable_from_file: no presentable found\n");
+
return presentable;
}