From 1c9047e6f3ebe76a71eab1b9fcca03c0432f84b7 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 17 Jul 2012 18:53:13 +0200 Subject: asr: Output byte counts in error message if sending data fails --- src/asr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/asr.c') 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; } -- cgit v1.1-32-gdbae