summaryrefslogtreecommitdiffstats
path: root/dev/afccheck.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-24 16:21:37 +0200
committerGravatar Martin Szulecki2009-07-24 16:21:37 +0200
commitcd1aa1c8107c1609746c12a6cd6777bd053167df (patch)
tree8628bb7e10a116a5587f0db1a3b1d1228289c8e2 /dev/afccheck.c
parent4c81f3c622d80a9291f3c13de2075afd753a0e1c (diff)
downloadlibimobiledevice-cd1aa1c8107c1609746c12a6cd6777bd053167df.tar.gz
libimobiledevice-cd1aa1c8107c1609746c12a6cd6777bd053167df.tar.bz2
Add --debug option to afccheck
Diffstat (limited to 'dev/afccheck.c')
-rw-r--r--dev/afccheck.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c
index 9174e32..0525417 100644
--- a/dev/afccheck.c
+++ b/dev/afccheck.c
@@ -91,6 +91,14 @@ int main(int argc, char *argv[])
int port = 0;
afc_client_t afc = NULL;
+ if (argc > 1 && !strcasecmp(argv[1], "--debug")) {
+ iphone_set_debug_level(1);
+ iphone_set_debug_mask(DBGMASK_ALL);
+ } else {
+ iphone_set_debug_level(0);
+ iphone_set_debug_mask(DBGMASK_NONE);
+ }
+
if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) {
printf("No iPhone found, is it plugged in?\n");
return 1;