Browse Source

Merge commit '69bdc6f' into cg_merges_20130524b

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

+ 2 - 2
driver-avalon.c

@@ -182,7 +182,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);
@@ -922,7 +922,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);
 		}
 	}