diff options
author | Roland Dreier <roland@purestorage.com> | 2011-08-12 13:01:24 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-08-22 15:26:31 -0400 |
commit | f15ea5780d08e4c96930c0d607d05e480ec588c8 (patch) | |
tree | 46dde386b4eaebaa626b692c95cb0be6c5948d7e /drivers/target | |
parent | ba7736696341ad4253125055c0c85aa9f42959a0 (diff) |
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>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_cdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_cdb.c b/drivers/target/target_core_cdb.c index 40ad142f7cb3..89ae923c5da6 100644 --- a/drivers/target/target_core_cdb.c +++ b/drivers/target/target_core_cdb.c | |||
@@ -920,8 +920,8 @@ target_emulate_modesense(struct se_cmd *cmd, int ten) | |||
920 | length += target_modesense_control(dev, &buf[offset+length]); | 920 | length += target_modesense_control(dev, &buf[offset+length]); |
921 | break; | 921 | break; |
922 | default: | 922 | default: |
923 | pr_err("Got Unknown Mode Page: 0x%02x\n", | 923 | pr_err("MODE SENSE: unimplemented page/subpage: 0x%02x/0x%02x\n", |
924 | cdb[2] & 0x3f); | 924 | cdb[2] & 0x3f, cdb[3]); |
925 | return PYX_TRANSPORT_UNKNOWN_MODE_PAGE; | 925 | return PYX_TRANSPORT_UNKNOWN_MODE_PAGE; |
926 | } | 926 | } |
927 | offset += length; | 927 | offset += length; |