From 69bdc6f9883fbbf79e3e23d13cc6f2042154d072 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 3 May 2013 22:28:37 +1000 Subject: [PATCH] Fix warnings in avalon driver. --- driver-avalon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver-avalon.c b/driver-avalon.c index d91d6f60..15ded4e2 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); } }