Commit 69bdc6f9883fbbf79e3e23d13cc6f2042154d072

Con Kolivas 2013-05-03T22:28:37

Fix warnings in avalon driver.

diff --git a/driver-avalon.c b/driver-avalon.c
index d91d6f6..15ded4e 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -181,7 +181,7 @@ static int avalon_send_task(int fd, const struct avalon_task *at,
 	if (at->reset)
 		nr_len = 1;
 	if (opt_debug) {
-		applog(LOG_DEBUG, "Avalon: Sent(%d):", nr_len);
+		applog(LOG_DEBUG, "Avalon: Sent(%u):", (unsigned int)nr_len);
 		hexdump((uint8_t *)buf, nr_len);
 	}
 	ret = write(fd, buf, nr_len);
@@ -927,7 +927,7 @@ static int64_t avalon_scanhash(struct thr_info *thr)
 			timersub(&tv_finish, &tv_start, &elapsed);
 			applog(LOG_DEBUG,
 			       "Avalon: nonce = 0x%08x = 0x%08llx hashes "
-			       "(%ld.%06lds)", nonce, hash_count,
+			       "(%ld.%06lds)", nonce, (unsigned long long)hash_count,
 			       elapsed.tv_sec, elapsed.tv_usec);
 		}
 	}