Skip to content

Commit 03abad9

Browse files
Sagi GrimbergNicholas Bellinger
authored andcommitted
Target/sbc: add debug print
Signed-off-by: Sagi Grimberg <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
1 parent 8085176 commit 03abad9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/target/target_core_sbc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,9 @@ sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb,
661661

662662
cmd->prot_type = dev->dev_attrib.pi_prot_type;
663663
cmd->prot_length = dev->prot_length * sectors;
664+
pr_debug("%s: prot_type=%d, prot_length=%d prot_op=%d prot_checks=%d\n",
665+
__func__, cmd->prot_type, cmd->prot_length,
666+
cmd->prot_op, cmd->prot_checks);
664667

665668
return true;
666669
}

0 commit comments

Comments
 (0)