summaryrefslogtreecommitdiffstats
path: root/src/preflight.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-04 23:06:35 +0100
committerGravatar Martin Szulecki2013-11-04 23:06:35 +0100
commitccfa91a88b80f768794ad184222c2bbbfb1b102c (patch)
tree195feb2573318eebce72c37dd639aec2a156bede /src/preflight.c
parent66b552798c0700ac851b53f6915d5a24aeeefdd9 (diff)
downloadusbmuxd-ccfa91a88b80f768794ad184222c2bbbfb1b102c.tar.gz
usbmuxd-ccfa91a88b80f768794ad184222c2bbbfb1b102c.tar.bz2
preflight: Add messages to indicate start and finish of preflight process
Diffstat (limited to 'src/preflight.c')
-rw-r--r--src/preflight.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/preflight.c b/src/preflight.c
index dc4b3dc..def6a82 100644
--- a/src/preflight.c
+++ b/src/preflight.c
@@ -135,6 +135,8 @@ static void* preflight_worker_handle_device_add(void* userdata)
plist_t value = NULL;
char* version_str = NULL;
+ usbmuxd_log(LL_INFO, "%s: Starting preflight on device %s...", __func__, _dev->udid);
+
retry:
lerr = lockdownd_client_new(dev, &lockdown, "usbmuxd");
if (lerr != LOCKDOWN_E_SUCCESS) {
@@ -152,6 +154,7 @@ retry:
if (strcmp(type, "com.apple.mobile.lockdown") != 0) {
// make restore mode devices visible
free(type);
+ usbmuxd_log(LL_INFO, "%s: Finished preflight on device %s", __func__, _dev->udid);
client_device_add(info);
goto leave;
}
@@ -164,6 +167,7 @@ retry:
free(host_id);
if (lerr == LOCKDOWN_E_SUCCESS) {
usbmuxd_log(LL_INFO, "%s: StartSession success for device %s", __func__, _dev->udid);
+ usbmuxd_log(LL_INFO, "%s: Finished preflight on device %s", __func__, _dev->udid);
client_device_add(info);
goto leave;
}
@@ -215,6 +219,7 @@ retry:
if (lockdownd_pair(lockdown, NULL) == LOCKDOWN_E_SUCCESS) {
/* if device is still showing the setup screen it will pair even without trust dialog */
usbmuxd_log(LL_INFO, "%s: Pair success for device %s", __func__, _dev->udid);
+ usbmuxd_log(LL_INFO, "%s: Finished preflight on device %s", __func__, _dev->udid);
client_device_add(info);
goto leave;
}
@@ -279,6 +284,8 @@ retry:
usbmuxd_log(LL_ERROR, "%s: ERROR: Pair failed for device %s, lockdown error %d", __func__, _dev->udid, lerr);
}
+ usbmuxd_log(LL_INFO, "%s: Finished preflight on device %s", __func__, _dev->udid);
+
/* make device visible anyways */
client_device_add(info);
@@ -300,6 +307,8 @@ retry:
goto leave;
}
+ usbmuxd_log(LL_INFO, "%s: Finished preflight on device %s", __func__, _dev->udid);
+
/* emit device added event and thus make device visible to clients */
client_device_add(info);
}