Only display discarded bytes in avalon if they're not used as nonces.
diff --git a/driver-avalon.c b/driver-avalon.c
index 86f8520..20e0ed7 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -648,12 +648,16 @@ static void avalon_parse_results(struct cgpu_info *avalon, struct avalon_info *i
}
}
- if (!found)
+ if (!found) {
spare = *offset - AVALON_READ_SIZE;
- else
+ if (spare)
+ applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", spare);
+ } else {
spare = AVALON_READ_SIZE + i;
+ if (i)
+ applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", i);
+ }
if (spare) {
- applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", spare);
*offset -= spare;
memmove(buf, buf + spare, *offset);
}