target: Print subpage too for unhandled MODE SENSE pages
Make a log message more useful by printing both the page and subpage that an initiator is requesting. Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
ba77366963
commit
f15ea5780d
1 changed files with 2 additions and 2 deletions
|
@ -920,8 +920,8 @@ target_emulate_modesense(struct se_cmd *cmd, int ten)
|
||||||
length += target_modesense_control(dev, &buf[offset+length]);
|
length += target_modesense_control(dev, &buf[offset+length]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
pr_err("Got Unknown Mode Page: 0x%02x\n",
|
pr_err("MODE SENSE: unimplemented page/subpage: 0x%02x/0x%02x\n",
|
||||||
cdb[2] & 0x3f);
|
cdb[2] & 0x3f, cdb[3]);
|
||||||
return PYX_TRANSPORT_UNKNOWN_MODE_PAGE;
|
return PYX_TRANSPORT_UNKNOWN_MODE_PAGE;
|
||||||
}
|
}
|
||||||
offset += length;
|
offset += length;
|
||||||
|
|
Loading…
Reference in a new issue