diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index f6d1a7fac..4fde76a7f 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -2030,10 +2030,11 @@ static void scst_adjust_sg(struct scst_cmd *cmd, struct scatterlist *sg, l = 0; for (i = 0, j = 0; i < *sg_cnt; i++, j++) { - TRACE_DBG("i %d, j %d, sg_cnt %d, sg %p, page_link %lx", i, j, #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24) + TRACE_DBG("i %d, j %d, sg_cnt %d, sg %p, page_link %lx", i, j, *sg_cnt, sg, sg[j].page_link); #else + TRACE_DBG("i %d, j %d, sg_cnt %d, sg %p, page_link %lx", i, j, *sg_cnt, sg, 0UL); #endif if (unlikely(sg_is_chain(&sg[j]))) {