Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f15ea578 authored by Roland Dreier's avatar Roland Dreier Committed by Nicholas Bellinger
Browse files

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: default avatarRoland Dreier <roland@purestorage.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent ba773669
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;