diff options
author | Martin Szulecki | 2012-07-17 18:53:13 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 18:53:13 +0200 |
commit | 1c9047e6f3ebe76a71eab1b9fcca03c0432f84b7 (patch) | |
tree | 1db612a6bfb765f556d84605084af8e4d5170b73 /src/asr.c | |
parent | 70d133fc9220e0dc2f4c08d535e1527702fabc45 (diff) | |
download | idevicerestore-1c9047e6f3ebe76a71eab1b9fcca03c0432f84b7.tar.gz idevicerestore-1c9047e6f3ebe76a71eab1b9fcca03c0432f84b7.tar.bz2 |
asr: Output byte counts in error message if sending data fails
Diffstat (limited to 'src/asr.c')
-rw-r--r-- | src/asr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |