diff --git a/iscsi-scst/kernel/isert-scst/iser_rdma.c b/iscsi-scst/kernel/isert-scst/iser_rdma.c index 3fb80102f..6180ce669 100644 --- a/iscsi-scst/kernel/isert-scst/iser_rdma.c +++ b/iscsi-scst/kernel/isert-scst/iser_rdma.c @@ -998,7 +998,7 @@ static struct isert_device *isert_device_create(struct ib_device *ib_dev) isert_dev->cq_desc = vmalloc(sizeof(*isert_dev->cq_desc) * isert_dev->num_cqs); if (unlikely(isert_dev->cq_desc == NULL)) { - PRINT_ERROR("Failed to allocate %ld bytes for iser cq_desc", + PRINT_ERROR("Failed to allocate %zd bytes for iser cq_desc", sizeof(*isert_dev->cq_desc) * isert_dev->num_cqs); err = -ENOMEM; goto fail_alloc_cq_desc; diff --git a/iscsi-scst/kernel/nthread.c b/iscsi-scst/kernel/nthread.c index 1692dcbeb..5f0cb8af0 100644 --- a/iscsi-scst/kernel/nthread.c +++ b/iscsi-scst/kernel/nthread.c @@ -581,7 +581,7 @@ restart: set_fs(oldfs); #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) - TRACE_DBG("nr_segs %zd, bytes_left %zd, res %d", + TRACE_DBG("nr_segs %ld, bytes_left %zd, res %d", msg->msg_iter.nr_segs, msg->msg_iter.count, res); #else TRACE_DBG("msg_iovlen %zd, read_size %d, res %d", msg->msg_iovlen,