mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-06 12:04:20 +00:00
Show read discrepancy in avalon_get_reset.
This commit is contained in:
parent
4e2b107642
commit
385f1cd8d4
@ -320,7 +320,8 @@ static void avalon_get_reset(int fd, struct avalon_result *ar)
|
|||||||
}
|
}
|
||||||
ret = read(fd, result, read_amount);
|
ret = read(fd, result, read_amount);
|
||||||
if (unlikely(ret != 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;
|
return;
|
||||||
}
|
}
|
||||||
if (opt_debug) {
|
if (opt_debug) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user