summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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[])
91 int port = 0; 91 int port = 0;
92 afc_client_t afc = NULL; 92 afc_client_t afc = NULL;
93 93
94 if (argc > 1 && !strcasecmp(argv[1], "--debug")) {
95 iphone_set_debug_level(1);
96 iphone_set_debug_mask(DBGMASK_ALL);
97 } else {
98 iphone_set_debug_level(0);
99 iphone_set_debug_mask(DBGMASK_NONE);
100 }
101
94 if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { 102 if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) {
95 printf("No iPhone found, is it plugged in?\n"); 103 printf("No iPhone found, is it plugged in?\n");
96 return 1; 104 return 1;