Browse Source

Target/sbc: add debug print

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Sagi Grimberg 11 years ago
parent
commit
03abad9e87
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/target/target_core_sbc.c

+ 3 - 0
drivers/target/target_core_sbc.c

@@ -661,6 +661,9 @@ sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb,
 
 
 	cmd->prot_type = dev->dev_attrib.pi_prot_type;
 	cmd->prot_type = dev->dev_attrib.pi_prot_type;
 	cmd->prot_length = dev->prot_length * sectors;
 	cmd->prot_length = dev->prot_length * sectors;
+	pr_debug("%s: prot_type=%d, prot_length=%d prot_op=%d prot_checks=%d\n",
+		 __func__, cmd->prot_type, cmd->prot_length,
+		 cmd->prot_op, cmd->prot_checks);
 
 
 	return true;
 	return true;
 }
 }