Browse Source

Bugfix: modminer: Use correct format for bytes left in bitstream upload message

Luke Dashjr 12 years ago
parent
commit
60bd4fef82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-modminer.c

+ 1 - 1
driver-modminer.c

@@ -219,7 +219,7 @@ modminer_fpga_upload_bitstream(struct cgpu_info*modminer)
 	while (len) {
 		buflen = len < 32 ? len : 32;
 		if (fread(buf, buflen, 1, f) != 1)
-			bailout2(LOG_ERR, "%s %u: File underrun programming %s (%d bytes left)", modminer->api->name, modminer->device_id, modminer->device_path, len);
+			bailout2(LOG_ERR, "%s %u: File underrun programming %s (%lu bytes left)", modminer->api->name, modminer->device_id, modminer->device_path, len);
 		if (write(fd, buf, buflen) != buflen)
 			bailout2(LOG_ERR, "%s %u: Error programming %s (data)", modminer->api->name, modminer->device_id,  modminer->device_path);
 		state->pdone = 100 - ((len * 100) / flen);