From b472d5347406fc24e9e489b5493dd6bf134dc92c Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 9 Jul 2010 03:33:34 +0200 Subject: Set and use static idevicerestore_debug flag for debug output --- src/idevicerestore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/idevicerestore.c') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 7312279..4a2b8ab 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -82,6 +82,7 @@ int main(int argc, char* argv[]) { case 'd': client->flags &= FLAG_DEBUG; + idevicerestore_debug = 1; break; case 'e': @@ -614,7 +615,7 @@ int get_signed_component(struct idevicerestore_client_t* client, const char* ips } img3_free(img3); - if (client->flags & FLAG_DEBUG) { + if (idevicerestore_debug) { write_file(component_name, component_data, component_size); } -- cgit v1.1-32-gdbae