Merge pull request #464 from Duncaen/fix-printf-formats

Fix printf formats
This commit is contained in:
Ronnie Sahlberg
2026-02-05 08:31:26 +10:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}