use size_t printf format for iovector->offset

This commit is contained in:
Duncan Overbruck
2026-02-04 20:06:37 +01:00
parent ce64c8d50a
commit 0873c22d55

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