mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
iscsi-scst: Fix 32-bit compiler warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user