Browse Source

Show read discrepancy in avalon_get_reset.

Con Kolivas 13 years ago
parent
commit
385f1cd8d4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver-avalon.c

+ 2 - 1
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) {