Commit 385f1cd8d49bd97a9fe37bec0ac6d29a44404f78

Con Kolivas 2013-04-08T10:39:16

Show read discrepancy in avalon_get_reset.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/driver-avalon.c b/driver-avalon.c
index 66455a0..f93b839 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -320,7 +320,8 @@ static void avalon_get_reset(int fd, struct avalon_result *ar)
 	}
 	ret = read(fd, result, read_amount);
 	if (unlikely(ret != read_amount)) {
-		applog(LOG_WARNING, "Avalon: Error %d on read in avalon_get_reset", errno);
+		applog(LOG_WARNING, "Avalon: Error %d on read, asked for %d got %d in avalon_get_reset",
+		       errno, read_amount, ret);
 		return;
 	}
 	if (opt_debug) {