Browse Source

Bugfix: rockminer: Correct types for short read error message

Luke Dashjr 11 years ago
parent
commit
32dff44cf5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-rockminer.c

+ 1 - 1
driver-rockminer.c

@@ -176,7 +176,7 @@ bool rockminer_detect_one(const char * const devpath)
 	{
 		rsz = read(fd, reply, sizeof(reply));
 		if (rsz != sizeof(reply))
-			return_via_applog(err, , LOG_DEBUG, "%s: Short read from %s (%d)", rockminer_drv.dname, devpath, rsz);
+			return_via_applog(err, , LOG_DEBUG, "%s: Short read from %s (%d)", rockminer_drv.dname, devpath, (int)rsz);
 		if ((!memcmp(reply, golden_result, sizeof(golden_result))) && (reply[4] & 0xf) == ROCKMINER_REPLY_NONCE_FOUND)
 			break;
 	}