diff options
author | Martin Szulecki | 2012-07-17 18:12:06 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 18:12:06 +0200 |
commit | 5822ae2d49e41ffc095be39717454a43a3452ef1 (patch) | |
tree | cf838a529ed049f2f0a28b7a95f10569ea0a7c51 /src/restore.c | |
parent | 1234b219cfd75c85a37621bf1a5bc5b8b22eb708 (diff) | |
download | idevicerestore-5822ae2d49e41ffc095be39717454a43a3452ef1.tar.gz idevicerestore-5822ae2d49e41ffc095be39717454a43a3452ef1.tar.bz2 |
restore: Only print plist if errors occoured or in debug mode
Diffstat (limited to 'src/restore.c')
-rw-r--r-- | src/restore.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/restore.c b/src/restore.c index e7a9930..148dbc8 100644 --- a/src/restore.c +++ b/src/restore.c @@ -502,7 +502,6 @@ int restore_handle_status_msg(restored_client_t client, plist_t msg) { int result = 0; uint64_t value = 0; info("Got status message\n"); - debug_plist(msg); plist_t node = plist_dict_get_item(msg, "Status"); plist_get_uint_val(node, &value); @@ -523,6 +522,7 @@ int restore_handle_status_msg(restored_client_t client, plist_t msg) { break; default: info("Unhandled status message (" FMT_qu ")\n", (long long unsigned int)value); + debug_plist(msg); break; } @@ -541,7 +541,6 @@ int restore_handle_bb_update_status_msg(restored_client_t client, plist_t msg) plist_t node = plist_dict_get_item(msg, "Accepted"); uint8_t accepted = 0; plist_get_bool_val(node, &accepted); - debug_plist(msg); if (!accepted) { error("ERROR: device didn't accept BasebandData\n"); @@ -1210,7 +1209,9 @@ int restore_send_baseband_data(restored_client_t restore, struct idevicerestore_ } // send Baseband TSS request - debug_plist(request); + if (idevicerestore_debug) + debug_plist(request); + info("Sending Baseband TSS request... "); response = tss_send_request(request); plist_free(request); @@ -1219,7 +1220,8 @@ int restore_send_baseband_data(restored_client_t restore, struct idevicerestore_ return -1; } - debug_plist(response); + if (idevicerestore_debug) + debug_plist(response); } // get baseband firmware file path from build identity |