scst: Fix a debug statement in __scst_adjust_sg()

Instead of printing the same 'sg' pointer in each iteration, print the sgi
pointer.

Fixes: commit 2755c02421 ("scst: Introduce for_each_sg() in scst_adjust_sg()") # v3.0.0 (r4910).



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8929 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-05-17 19:54:19 +00:00
parent 8276dc53d3
commit 54ccb1add2

View File

@@ -3305,13 +3305,8 @@ static bool __scst_adjust_sg(struct scst_cmd *cmd, struct scatterlist *sg,
l = 0;
for_each_sg(sg, sgi, *sg_cnt, i) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24)
TRACE_DBG("i %d, sg_cnt %d, sg %p, page_link %lx, len %d", i,
*sg_cnt, sg, sgi->page_link, sgi->length);
#else
TRACE_DBG("i %d, sg_cnt %d, sg %p, page_link %lx", i,
*sg_cnt, sg, 0UL);
#endif
TRACE_DBG("sg[%d/%d]: addr %p, offset %d, len %d", i, *sg_cnt,
sgi, sgi->offset, sgi->length);
l += sgi->length;
if (l >= adjust_len) {
int left = adjust_len - (l - sgi->length);