From 95fe655fd76aa3457a09ed697e7804467a8fcfb7 Mon Sep 17 00:00:00 2001 From: Kano Date: Thu, 2 May 2013 23:26:02 +1000 Subject: [PATCH] ica correct applog typing --- driver-icarus.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/driver-icarus.c b/driver-icarus.c index d78c9757..5d1d91c4 100644 --- a/driver-icarus.c +++ b/driver-icarus.c @@ -730,8 +730,8 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work, estimate_hashes = 0xffffffff; if (opt_debug) { - applog(LOG_DEBUG, "Icarus %d no nonce = 0x%08llx hashes (%ld.%06lds)", - icarus->device_id, estimate_hashes, + applog(LOG_DEBUG, "Icarus %d no nonce = 0x%08lX hashes (%ld.%06lds)", + icarus->device_id, (long unsigned int)estimate_hashes, elapsed.tv_sec, elapsed.tv_usec); } @@ -760,8 +760,9 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work, timersub(&tv_finish, &tv_start, &elapsed); if (opt_debug) { - applog(LOG_DEBUG, "Icarus %d nonce = 0x%08x = 0x%08llx hashes (%ld.%06lds)", - icarus->device_id, nonce, hash_count, elapsed.tv_sec, elapsed.tv_usec); + applog(LOG_DEBUG, "Icarus %d nonce = 0x%08x = 0x%08lX hashes (%ld.%06lds)", + icarus->device_id, nonce, (long unsigned int)hash_count, + elapsed.tv_sec, elapsed.tv_usec); } // ignore possible end condition values ... and hw errors