diff options
| author | 2009-07-24 16:21:37 +0200 | |
|---|---|---|
| committer | 2009-07-24 16:21:37 +0200 | |
| commit | cd1aa1c8107c1609746c12a6cd6777bd053167df (patch) | |
| tree | 8628bb7e10a116a5587f0db1a3b1d1228289c8e2 | |
| parent | 4c81f3c622d80a9291f3c13de2075afd753a0e1c (diff) | |
| download | libimobiledevice-cd1aa1c8107c1609746c12a6cd6777bd053167df.tar.gz libimobiledevice-cd1aa1c8107c1609746c12a6cd6777bd053167df.tar.bz2 | |
Add --debug option to afccheck
| -rw-r--r-- | dev/afccheck.c | 8 |
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; |
