Skip to content

Commit

Permalink
Merge pull request ckolivas#530 from kanoi/master
Browse files Browse the repository at this point in the history
drillbit format %z not valid on windows
  • Loading branch information
kanoi committed Dec 23, 2013
2 parents 5d6e0da + 432a7db commit 227d57b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions driver-drillbit.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ static bool usb_read_fixed_size(struct cgpu_info *drillbit, void *result, size_t
if (count == result_size) {
return true;
}
drvlog(LOG_ERR, "Read incomplete fixed size packet - got %zu bytes / %zu (timeout %d)", count, result_size, timeout);
drvlog(LOG_ERR, "Read incomplete fixed size packet - got %d bytes / %d (timeout %d)",
(int)count, (int)result_size, timeout);
return false;
}

Expand Down Expand Up @@ -232,8 +233,8 @@ static bool drillbit_getinfo(struct cgpu_info *drillbit, struct drillbit_info *i
return false;
}
if (amount != SZ_SERIALISED_IDENTITY) {
drvlog(LOG_ERR, "Getinfo received %d bytes instead of %zu",
amount, sizeof(Identity));
drvlog(LOG_ERR, "Getinfo received %d bytes instead of %d",
amount, (int)sizeof(Identity));
return false;
}
deserialise_identity(&identity, buf);
Expand Down

0 comments on commit 227d57b

Please sign in to comment.