diff options
author | Bastien Nocera <hadess@hadess.net> | 2017-09-14 18:20:40 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2017-09-19 17:10:45 +0200 |
commit | e8a94c2f474251e967f3bcc10a754207cbaf001f (patch) | |
tree | f903733432d5f3f53acb6115a34f85aca157a2fb | |
parent | 46651a6ba58c8bc53463140333bc4f59b585cb91 (diff) | |
download | gvfs-e8a94c2f474251e967f3bcc10a754207cbaf001f.tar.gz |
afc: More debug, for a change
-rw-r--r-- | daemon/gvfsbackendafc.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c index befb3a9e..2cafbebb 100644 --- a/daemon/gvfsbackendafc.c +++ b/daemon/gvfsbackendafc.c @@ -338,6 +338,8 @@ g_vfs_backend_idevice_check (idevice_error_t cond, GVfsJob *job) break; } + g_debug ("idevice_new() failed with error '%d'\n", cond); + return 1; } @@ -508,6 +510,7 @@ g_vfs_backend_afc_mount (GVfsBackend *backend, g_vfs_job_failed (G_VFS_JOB(job), G_IO_ERROR, G_IO_ERROR_FAILED, _("Invalid AFC location: must be in the form of " "afc://uuid:port-number")); + g_debug ("Failed to mount, the AFC location was in the wrong format"); return; } @@ -663,7 +666,15 @@ g_vfs_backend_afc_mount (GVfsBackend *backend, g_free (message); if (!ret || aborted || (choice == CHOICE_CANCEL)) - break; + { + if (!ret) + g_debug ("g_mount_source_ask_question() failed\n"); + else if (aborted) + g_debug ("g_mount_source_ask_question() aborted\n"); + else + g_debug ("g_mount_source_ask_question() choice was 'cancel'\n"); + break; + } } while (retries++ < 10); /* Now we're done with the old client */ |