From: Roland Dreier Date: Fri, 12 Aug 2011 17:01:24 +0000 (-0700) Subject: target: Print subpage too for unhandled MODE SENSE pages X-Git-Tag: v3.1-rc4~43^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f15ea5780d08e4c96930c0d607d05e480ec588c8;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Nicholas Bellinger --- diff --git a/drivers/target/target_core_cdb.c b/drivers/target/target_core_cdb.c index 40ad142..89ae923 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) length += target_modesense_control(dev, &buf[offset+length]); break; default: - pr_err("Got Unknown Mode Page: 0x%02x\n", - cdb[2] & 0x3f); + pr_err("MODE SENSE: unimplemented page/subpage: 0x%02x/0x%02x\n", + cdb[2] & 0x3f, cdb[3]); return PYX_TRANSPORT_UNKNOWN_MODE_PAGE; } offset += length;