target/sbc: Update sbc_dif_generate pr_debug output
Now that sbc_dif_generate can also be called for READ_INSERT, update the debugging message accordingly. Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
d7a463b0ac
commit
6ae5040821
@ -1208,10 +1208,12 @@ sbc_dif_generate(struct se_cmd *cmd)
|
|||||||
sdt->ref_tag = cpu_to_be32(sector & 0xffffffff);
|
sdt->ref_tag = cpu_to_be32(sector & 0xffffffff);
|
||||||
sdt->app_tag = 0;
|
sdt->app_tag = 0;
|
||||||
|
|
||||||
pr_debug("DIF WRITE INSERT sector: %llu guard_tag: 0x%04x"
|
pr_debug("DIF %s INSERT sector: %llu guard_tag: 0x%04x"
|
||||||
" app_tag: 0x%04x ref_tag: %u\n",
|
" app_tag: 0x%04x ref_tag: %u\n",
|
||||||
(unsigned long long)sector, sdt->guard_tag,
|
(cmd->data_direction == DMA_TO_DEVICE) ?
|
||||||
sdt->app_tag, be32_to_cpu(sdt->ref_tag));
|
"WRITE" : "READ", (unsigned long long)sector,
|
||||||
|
sdt->guard_tag, sdt->app_tag,
|
||||||
|
be32_to_cpu(sdt->ref_tag));
|
||||||
|
|
||||||
sector++;
|
sector++;
|
||||||
offset += sizeof(struct se_dif_v1_tuple);
|
offset += sizeof(struct se_dif_v1_tuple);
|
||||||
|
Loading…
Reference in New Issue
Block a user