summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 18:53:13 +0200
committerGravatar Nikias Bassen2012-07-17 18:53:13 +0200
commit1c9047e6f3ebe76a71eab1b9fcca03c0432f84b7 (patch)
tree1db612a6bfb765f556d84605084af8e4d5170b73
parent70d133fc9220e0dc2f4c08d535e1527702fabc45 (diff)
downloadidevicerestore-1c9047e6f3ebe76a71eab1b9fcca03c0432f84b7.tar.gz
idevicerestore-1c9047e6f3ebe76a71eab1b9fcca03c0432f84b7.tar.bz2
asr: Output byte counts in error message if sending data fails
-rw-r--r--src/asr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asr.c b/src/asr.c
index db11d08..401bc51 100644
--- a/src/asr.c
+++ b/src/asr.c
@@ -159,7 +159,7 @@ int asr_send_buffer(asr_client_t asr, const char* data, uint32_t size) {
device_error = idevice_connection_send(asr->connection, data, size, &bytes);
if (device_error != IDEVICE_E_SUCCESS || bytes != size) {
- error("ERROR: Unable to send data to ASR\n");
+ error("ERROR: Unable to send data to ASR. Sent %u of %u bytes.\n", bytes, size);
return -1;
}