Browse Source

Bugfix: avalon: Fix applog formatting

Luke Dashjr 12 years ago
parent
commit
9e91d3e7c3
2 changed files with 3 additions and 3 deletions
  1. 2 2
      driver-avalon.c
  2. 1 1
      libblkmaker

+ 2 - 2
driver-avalon.c

@@ -921,9 +921,9 @@ static int64_t avalon_scanhash(struct thr_info *thr)
 		if (opt_debug) {
 			timersub(&tv_finish, &tv_start, &elapsed);
 			applog(LOG_DEBUG,
-			       "Avalon: nonce = 0x%08x = 0x%08"PRIx64" hashes "
+			       "Avalon: nonce = 0x%08"PRIx32" = 0x%08"PRIx64" hashes "
 			       "(%ld.%06lds)", nonce, (uint64_t)hash_count,
-			       elapsed.tv_sec, elapsed.tv_usec);
+			       (long)elapsed.tv_sec, (long)elapsed.tv_usec);
 		}
 	}
 	if (hash_count && avalon->results < AVALON_ARRAY_SIZE)

+ 1 - 1
libblkmaker

@@ -1 +1 @@
-Subproject commit 5f3ad2a1edc37ef2745634fea6bfc5b4d9bfdf9a
+Subproject commit 8f4bb3ee9f43405203fef6f64ca938dc7933a060