git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-10-23 04:25:27 +00:00
parent 11f3535132
commit 8a09d515b0
2 changed files with 2 additions and 2 deletions

View File

@@ -3177,7 +3177,7 @@ static enum compl_status_e vdisk_exec_mode_select(struct vdisk_cmd_params *p)
if (address[offset - 1] == 8) {
offset += 8;
} else if (address[offset - 1] != 0) {
PRINT_ERROR("%s", "MODE SELECT: Wrong parameters list lenght");
PRINT_ERROR("%s", "MODE SELECT: Wrong parameters list length");
scst_set_invalid_field_in_parm_list(cmd, offset-1, 0);
goto out_put;
}

View File

@@ -1248,7 +1248,7 @@ static void exec_mode_select(struct vdisk_cmd *vcmd)
offset += 8;
} else if (address[offset - 1] != 0) {
PRINT_ERROR("%s", "MODE SELECT: Wrong parameters list "
"lenght");
"length");
set_cmd_error(vcmd,
SCST_LOAD_SENSE(scst_sense_invalid_field_in_parm_list));
goto out;