Commit 1f070cc2 authored by Andy Grover's avatar Andy Grover Committed by Nicholas Bellinger

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: default avatarAndy Grover <agrover@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent d2843c17
...@@ -2151,8 +2151,8 @@ core_scsi3_emulate_pro_register(struct se_cmd *cmd, u64 res_key, u64 sa_res_key, ...@@ -2151,8 +2151,8 @@ core_scsi3_emulate_pro_register(struct se_cmd *cmd, u64 res_key, u64 sa_res_key,
} }
if (spec_i_pt) { if (spec_i_pt) {
pr_err("SPC-3 PR UNREGISTER: SPEC_I_PT" pr_err("SPC-3 PR REGISTER: SPEC_I_PT"
" set while sa_res_key=0\n"); " set on a registered nexus\n");
ret = TCM_INVALID_PARAMETER_LIST; ret = TCM_INVALID_PARAMETER_LIST;
goto out_put_pr_reg; goto out_put_pr_reg;
} }
...@@ -2161,8 +2161,8 @@ core_scsi3_emulate_pro_register(struct se_cmd *cmd, u64 res_key, u64 sa_res_key, ...@@ -2161,8 +2161,8 @@ core_scsi3_emulate_pro_register(struct se_cmd *cmd, u64 res_key, u64 sa_res_key,
* An existing ALL_TG_PT=1 registration being released * An existing ALL_TG_PT=1 registration being released
* must also set ALL_TG_PT=1 in the incoming PROUT. * must also set ALL_TG_PT=1 in the incoming PROUT.
*/ */
if (pr_reg->pr_reg_all_tg_pt && !(all_tg_pt)) { if (pr_reg->pr_reg_all_tg_pt && !all_tg_pt) {
pr_err("SPC-3 PR UNREGISTER: ALL_TG_PT=1" pr_err("SPC-3 PR REGISTER: ALL_TG_PT=1"
" registration exists, but ALL_TG_PT=1 bit not" " registration exists, but ALL_TG_PT=1 bit not"
" present in received PROUT\n"); " present in received PROUT\n");
ret = TCM_INVALID_CDB_FIELD; ret = TCM_INVALID_CDB_FIELD;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment