Skip to content
This repository
Browse code

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 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 usr/ssc.c
4 usr/ssc.c
@@ -783,6 +783,7 @@ uint8_t ssc_mode_select(struct scsi_cmd *cmd)
783 783 int count;
784 784 int save_pages;
785 785 int page_format;
  786 + int mselect_6 = 0;
786 787
787 788 save_pages = cmd->scb[1] & 0x01;
788 789 page_format = (cmd->scb[1] & (1 << 4)) ? 1 : 0;
@@ -790,6 +791,7 @@ uint8_t ssc_mode_select(struct scsi_cmd *cmd)
790 791 switch (cmd->scb[0]) {
791 792 case MODE_SELECT:
792 793 cmd->dbuf_p->sz = cmd->scb[4];
  794 + mselect_6 = 1;
793 795 break;
794 796 case MODE_SELECT_10:
795 797 cmd->dbuf_p->sz = get_unaligned_be16(&cmd->scb[7]);
@@ -800,7 +802,7 @@ uint8_t ssc_mode_select(struct scsi_cmd *cmd)
800 802
801 803 count = retrieve_CDB_data(cmd->cdev, cmd->dbuf_p);
802 804
803   - MHVTL_DBG(1, "MODE SELECT (%ld) **", (long)cmd->dbuf_p->serialNo);
  805 + MHVTL_DBG(1, "MODE SELECT %d (%ld) **", (mselect_6) ? 6 : 10, (long)cmd->dbuf_p->serialNo);
804 806 MHVTL_DBG(1, " Save Pages: %d, Page Format: %d", save_pages, page_format);
805 807
806 808 switch (cmd->scb[0]) {

0 comments on commit 8b4458c

Please sign in to comment.
Something went wrong with that request. Please try again.