Browse Source

bitmain: Use more portable PRIu64 rather than %llu (which fails on Windows)

Luke Dashjr 10 years ago
parent
commit
eb198621c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-bitmain.c

+ 1 - 1
driver-bitmain.c

@@ -671,7 +671,7 @@ static int bitmain_read(struct cgpu_info *bitmain, unsigned char *buf,
 	size_t total = 0;
 	size_t total = 0;
 
 
 	if(bitmain == NULL || buf == NULL || bufsize <= 0) {
 	if(bitmain == NULL || buf == NULL || bufsize <= 0) {
-		applog(LOG_WARNING, "bitmain_read parameter error bufsize(%llu)", (unsigned long long)bufsize);
+		applog(LOG_WARNING, "bitmain_read parameter error bufsize(%"PRIu64")", (uint64_t)bufsize);
 		return -1;
 		return -1;
 	}
 	}
 	{
 	{