From 540f06a2efe883d119b89b23a2b2bb56bfeb80eb Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 31 Jul 2012 03:47:30 +0200 Subject: fix debug mode for libidevicerestore --- src/idevicerestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/idevicerestore.c') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 8c7ad83..a5ea45d 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -175,6 +175,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) if (client->flags & FLAG_DEBUG) { idevice_set_debug_level(1); irecv_set_debug_level(1); + idevicerestore_debug = 1; } idevicerestore_progress(client, RESTORE_STEP_DETECT, 0.0); @@ -984,7 +985,6 @@ int main(int argc, char* argv[]) { case 'd': client->flags |= FLAG_DEBUG; - idevicerestore_debug = 1; break; case 'e': -- cgit v1.1-32-gdbae