From 4c3fe39e94803bc1a6f51f4512469bcaf3e73986 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 26 May 2013 21:50:31 +1000 Subject: [PATCH] Add avalon reset response to debugging output. --- driver-avalon.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/driver-avalon.c b/driver-avalon.c index fe7582e5..ff176409 100644 --- a/driver-avalon.c +++ b/driver-avalon.c @@ -309,6 +309,11 @@ static int avalon_reset(struct cgpu_info *avalon, int fd) * AA 55 AA 55 00 00 00 00 00 00 */ spare = AVALON_READ_SIZE - 10; tmp = (uint8_t *)&ar; + if (opt_debug) { + applog(LOG_DEBUG, "AVA%d reset: get:", avalon->device_id); + hexdump(tmp, AVALON_READ_SIZE); + } + for (i = 0; i <= spare; i++) { buf = &tmp[i]; if (buf[0] == 0xAA)