Merge pull request #464 from Duncaen/fix-printf-formats
Fix printf formats
This commit is contained in:
@@ -584,7 +584,7 @@ iscsi_iovector_readv_writev(struct iscsi_context *iscsi, struct scsi_iovector *i
|
||||
|
||||
if (pos < iovector->offset) {
|
||||
iscsi_set_error(iscsi, "%s: iovector reset. pos(%d) is smaller than"
|
||||
"current offset(%ld)", rw, pos, iovector->offset);
|
||||
"current offset(%zu)", rw, pos, iovector->offset);
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
capacity = block_length * (rc16->returned_lba + 1);
|
||||
if (offset > capacity) {
|
||||
fprintf(stderr,"Offset(%lu) exceeds capacity(%lu)\n", offset, capacity);
|
||||
fprintf(stderr,"Offset(%" PRIu64 ") exceeds capacity(%" PRIu64 ")\n", offset, capacity);
|
||||
goto free_task;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user