diff options
author | Andy Grover <agrover@redhat.com> | 2013-05-16 13:40:56 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-06-14 03:04:35 -0400 |
commit | 1f070cc2ac7783afd0174c29dc59d2b4fac72646 (patch) | |
tree | 4623d735f23ea5e1b39e48a03ba6b26b4f015faf /drivers/target | |
parent | d2843c173ee53cf4c12e7dfedc069a5bc76f0ac5 (diff) |
target: Fix two debugprints that appear to be wrong
They're in emulate_pro_register, so change UNREGISTER to REGISTER.
The first one seems wrong -- sa_res_key could be 0 there, but it's testing
spec_i_pt.
Remove unneeded parens in 2nd conditional.
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_pr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c index f776368d727a..c797e79dc5c1 100644 --- a/drivers/target/target_core_pr.c +++ b/drivers/target/target_core_pr.c | |||
@@ -2151,8 +2151,8 @@ core_scsi3_emulate_pro_register(struct se_cmd *cmd, u64 res_key, u64 sa_res_key, | |||
2151 | } | 2151 | } |
2152 | 2152 | ||
2153 | if (spec_i_pt) { | 2153 | if (spec_i_pt) { |
2154 | pr_err("SPC-3 PR UNREGISTER: SPEC_I_PT" | 2154 | pr_err("SPC-3 PR REGISTER: SPEC_I_PT" |
2155 | " set while sa_res_key=0\n"); | 2155 | " set on a registered nexus\n"); |
2156 | ret = TCM_INVALID_PARAMETER_LIST; | 2156 | ret = TCM_INVALID_PARAMETER_LIST; |
2157 | goto out_put_pr_reg; | 2157 | goto out_put_pr_reg; |
2158 | } | 2158 | } |
@@ -2161,8 +2161,8 @@ core_scsi3_emulate_pro_register(struct se_cmd *cmd, u64 res_key, u64 sa_res_key, | |||
2161 | * An existing ALL_TG_PT=1 registration being released | 2161 | * An existing ALL_TG_PT=1 registration being released |
2162 | * must also set ALL_TG_PT=1 in the incoming PROUT. | 2162 | * must also set ALL_TG_PT=1 in the incoming PROUT. |
2163 | */ | 2163 | */ |
2164 | if (pr_reg->pr_reg_all_tg_pt && !(all_tg_pt)) { | 2164 | if (pr_reg->pr_reg_all_tg_pt && !all_tg_pt) { |
2165 | pr_err("SPC-3 PR UNREGISTER: ALL_TG_PT=1" | 2165 | pr_err("SPC-3 PR REGISTER: ALL_TG_PT=1" |
2166 | " registration exists, but ALL_TG_PT=1 bit not" | 2166 | " registration exists, but ALL_TG_PT=1 bit not" |
2167 | " present in received PROUT\n"); | 2167 | " present in received PROUT\n"); |
2168 | ret = TCM_INVALID_CDB_FIELD; | 2168 | ret = TCM_INVALID_CDB_FIELD; |