aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2015-04-14 14:59:20 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2015-04-16 01:47:19 -0400
commit6ae504082188d25178ac9a22197fee89ebda232c (patch)
tree36740d0ebdefdce6a2b67b3691aced904787aa85 /drivers/target
parentd7a463b0acc3fecf9d01cd5d518bf46578658ff3 (diff)
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>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_sbc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c
index 38d7c33bbc99..96840366350e 100644
--- a/drivers/target/target_core_sbc.c
+++ b/drivers/target/target_core_sbc.c
@@ -1208,10 +1208,12 @@ sbc_dif_generate(struct se_cmd *cmd)
1208 sdt->ref_tag = cpu_to_be32(sector & 0xffffffff); 1208 sdt->ref_tag = cpu_to_be32(sector & 0xffffffff);
1209 sdt->app_tag = 0; 1209 sdt->app_tag = 0;
1210 1210
1211 pr_debug("DIF WRITE INSERT sector: %llu guard_tag: 0x%04x" 1211 pr_debug("DIF %s INSERT sector: %llu guard_tag: 0x%04x"
1212 " app_tag: 0x%04x ref_tag: %u\n", 1212 " app_tag: 0x%04x ref_tag: %u\n",
1213 (unsigned long long)sector, sdt->guard_tag, 1213 (cmd->data_direction == DMA_TO_DEVICE) ?
1214 sdt->app_tag, be32_to_cpu(sdt->ref_tag)); 1214 "WRITE" : "READ", (unsigned long long)sector,
1215 sdt->guard_tag, sdt->app_tag,
1216 be32_to_cpu(sdt->ref_tag));
1215 1217
1216 sector++; 1218 sector++;
1217 offset += sizeof(struct se_dif_v1_tuple); 1219 offset += sizeof(struct se_dif_v1_tuple);