summaryrefslogtreecommitdiffstats
path: root/src/irecovery.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-07-16 18:14:32 +0200
committerGravatar Martin Szulecki2010-07-16 18:14:32 +0200
commit90560fc1ff9298f2a32e11d6b35a50542d2a2080 (patch)
tree45a0b48272077a798aafaf89c8661f7241d070c7 /src/irecovery.c
parente89c9418e7072d5a1491055c8f78748bf82de49c (diff)
downloadlibirecovery-90560fc1ff9298f2a32e11d6b35a50542d2a2080.tar.gz
libirecovery-90560fc1ff9298f2a32e11d6b35a50542d2a2080.tar.bz2
Set verbose flag before opening a connection and fix some debug messages
Diffstat (limited to 'src/irecovery.c')
-rw-r--r--src/irecovery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irecovery.c b/src/irecovery.c
index 0e981cd..415c20e 100644
--- a/src/irecovery.c
+++ b/src/irecovery.c
@@ -276,6 +276,8 @@ int main(int argc, char** argv) {
}
}
+ if (verbose) irecv_set_debug_level(verbose);
+
irecv_client_t client = NULL;
for (i = 0; i <= 5; i++) {
debug("Attempting to connect... \n");
@@ -290,8 +292,6 @@ int main(int argc, char** argv) {
}
}
- if (verbose) irecv_set_debug_level(verbose);
-
switch (action) {
case kResetDevice:
irecv_reset(client);