From 4f187cfbf2598635295365e647b5032ab11a2cba Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 13 Jan 2010 01:22:50 +0100 Subject: Use debug_plist() to print xml plists instead of binary buffers --- src/property_list_service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/property_list_service.c') diff --git a/src/property_list_service.c b/src/property_list_service.c index b4c2f44..852ed9c 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c @@ -146,7 +146,7 @@ static property_list_service_error_t internal_plist_send(property_list_service_c iphone_device_send(client->connection, content, length, (uint32_t*)&bytes); if (bytes > 0) { debug_info("sent %d bytes", bytes); - debug_buffer(content, bytes); + debug_plist(plist); if ((uint32_t)bytes == length) { res = PROPERTY_LIST_SERVICE_E_SUCCESS; } else { @@ -243,13 +243,13 @@ static property_list_service_error_t internal_plist_recv_timeout(property_list_s debug_info("received %d bytes", bytes); curlen += bytes; } - debug_buffer(content, pktlen); if (!memcmp(content, "bplist00", 8)) { plist_from_bin(content, pktlen, plist); } else { plist_from_xml(content, pktlen, plist); } if (*plist) { + debug_plist(*plist); res = PROPERTY_LIST_SERVICE_E_SUCCESS; } else { res = PROPERTY_LIST_SERVICE_E_PLIST_ERROR; -- cgit v1.1-32-gdbae