From 0873c22d55620639d6d5c2bc25e5904de5fc10bf Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Wed, 4 Feb 2026 20:06:37 +0100 Subject: [PATCH 1/2] use size_t printf format for iovector->offset --- lib/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket.c b/lib/socket.c index 7c0a169..b393e0c 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -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; } From 2e4231d1d87fd13e645d1e7bb7c6be4fb51e90af Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Wed, 4 Feb 2026 20:10:48 +0100 Subject: [PATCH 2/2] use PRIu64 printf format for uint64_t --- utils/iscsi-discard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/iscsi-discard.c b/utils/iscsi-discard.c index f8ad18a..3a6e87d 100644 --- a/utils/iscsi-discard.c +++ b/utils/iscsi-discard.c @@ -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; }