Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ssc: log mode select version

Log mode select version in ssc_mode_select.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Mark Harvey <markh794@gmail.com>
  • Loading branch information...
commit 8b4458c368bcafe339471b935550d645edf0de59 1 parent c3f8f32
Sebastian Herbszt authored committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 usr/ssc.c
View
4 usr/ssc.c
@@ -783,6 +783,7 @@ uint8_t ssc_mode_select(struct scsi_cmd *cmd)
int count;
int save_pages;
int page_format;
+ int mselect_6 = 0;
save_pages = cmd->scb[1] & 0x01;
page_format = (cmd->scb[1] & (1 << 4)) ? 1 : 0;
@@ -790,6 +791,7 @@ uint8_t ssc_mode_select(struct scsi_cmd *cmd)
switch (cmd->scb[0]) {
case MODE_SELECT:
cmd->dbuf_p->sz = cmd->scb[4];
+ mselect_6 = 1;
break;
case MODE_SELECT_10:
cmd->dbuf_p->sz = get_unaligned_be16(&cmd->scb[7]);
@@ -800,7 +802,7 @@ uint8_t ssc_mode_select(struct scsi_cmd *cmd)
count = retrieve_CDB_data(cmd->cdev, cmd->dbuf_p);
- MHVTL_DBG(1, "MODE SELECT (%ld) **", (long)cmd->dbuf_p->serialNo);
+ MHVTL_DBG(1, "MODE SELECT %d (%ld) **", (mselect_6) ? 6 : 10, (long)cmd->dbuf_p->serialNo);
MHVTL_DBG(1, " Save Pages: %d, Page Format: %d", save_pages, page_format);
switch (cmd->scb[0]) {
Please sign in to comment.
Something went wrong with that request. Please try again.