diff options
author | Martin Szulecki | 2010-07-09 03:33:34 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-07-09 03:33:34 +0200 |
commit | b472d5347406fc24e9e489b5493dd6bf134dc92c (patch) | |
tree | e38d1ee48edbdc852b8ca647a273745cf48b59dc /src | |
parent | 17627444b5d61449a638a7937326d852a2705a11 (diff) | |
download | idevicerestore-b472d5347406fc24e9e489b5493dd6bf134dc92c.tar.gz idevicerestore-b472d5347406fc24e9e489b5493dd6bf134dc92c.tar.bz2 |
Set and use static idevicerestore_debug flag for debug output
Diffstat (limited to 'src')
-rw-r--r-- | src/idevicerestore.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |