summaryrefslogtreecommitdiff
path: root/backend/epson2-io.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-27 06:51:24 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-27 06:51:24 +0200
commitf3843702a12cf46f9cd4d1be772055ec6893a1bb (patch)
tree3f3d8fe1f2b756dc2cd9fcff7b2e8e53539278ba /backend/epson2-io.c
parentb2802d98d4486d6afc585062f4ca02fddf829dc5 (diff)
Release 1.0.25+git20150425-1
Diffstat (limited to 'backend/epson2-io.c')
-rw-r--r--backend/epson2-io.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/backend/epson2-io.c b/backend/epson2-io.c
index 13adef4..4477963 100644
--- a/backend/epson2-io.c
+++ b/backend/epson2-io.c
@@ -110,8 +110,8 @@ e2_send(Epson_Scanner * s, void *buf, size_t buf_size, size_t reply_len,
}
ssize_t
-e2_recv(Epson_Scanner * s, void *buf, ssize_t buf_size,
- SANE_Status * status)
+e2_recv(Epson_Scanner *s, void *buf, ssize_t buf_size,
+ SANE_Status *status)
{
ssize_t n = 0;
@@ -142,8 +142,9 @@ e2_recv(Epson_Scanner * s, void *buf, ssize_t buf_size,
}
if (n < buf_size) {
- DBG(1, "%s: expected = %lu, got = %ld\n", __func__,
- (u_long) buf_size, (long) n);
+ DBG(1, "%s: expected = %lu, got = %ld, canceling: %d\n", __func__,
+ (u_long) buf_size, (long) n, s->canceling);
+
*status = SANE_STATUS_IO_ERROR;
}