summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-07-08 15:33:15 +0200
committerGravatar Martin Szulecki2010-07-08 15:33:15 +0200
commit5c3afed329e828342d735b4af9a9cae90fcc9a34 (patch)
tree575c2a5f6426b8229b4d848ab9f41a01711647ee /src
parent64ad5928ac315798e0c45690d1a477f5fd3a79f3 (diff)
downloadidevicerestore-5c3afed329e828342d735b4af9a9cae90fcc9a34.tar.gz
idevicerestore-5c3afed329e828342d735b4af9a9cae90fcc9a34.tar.bz2
Use debug_plist in tss code and remove redundant code
Diffstat (limited to 'src')
-rw-r--r--src/tss.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/tss.c b/src/tss.c
index 6696b60..0d4422c 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -126,11 +126,7 @@ plist_t tss_create_request(plist_t build_identity, uint64_t ecid) {
}
if (idevicerestore_debug) {
- int sz = 0;
- char* xml = NULL;
- plist_to_xml(tss_request, &xml, &sz);
- debug("%s", xml);
- free(xml);
+ debug_plist(tss_request);
}
return tss_request;
@@ -207,11 +203,7 @@ plist_t tss_send_request(plist_t tss_request) {
free(response);
if (idevicerestore_debug) {
- int sz = 0;
- char* xml = NULL;
- plist_to_xml(tss_response, &xml, &sz);
- debug("%s", xml);
- free(xml);
+ debug_plist(tss_response);
}
return tss_response;