Skip to content
Browse files

spc: optimise mode sense version logging

Optimise version logging in spc_mode_sense.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Mark Harvey <markh794@gmail.com>
  • Loading branch information...
1 parent 8b4458c commit 85b3d6e03ba5a399f17bb86b005e0be9af1f1b23 Sebastian Herbszt committed with Apr 2, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 usr/spc.c
View
4 usr/spc.c
@@ -554,8 +554,6 @@ uint8_t spc_mode_sense(struct scsi_cmd *cmd)
/* Disable Block Descriptors */
uint8_t blockDescriptorLen = (scb[1] & 0x8) ? 0 : 8;
- MHVTL_DBG(1, "MODE SENSE (%ld) **", (long)cmd->dbuf_p->serialNo);
-
/*
pc => page control
00 -> 0: Report Current values
@@ -572,7 +570,7 @@ uint8_t spc_mode_sense(struct scsi_cmd *cmd)
alloc_len = msense_6 ? scb[4] : ((scb[7] << 8) | scb[8]);
offset = msense_6 ? 4 : 8;
- MHVTL_DBG(2, " Mode Sense %d byte version", (msense_6) ? 6 : 10);
+ MHVTL_DBG(1, "MODE SENSE %d (%ld) **", (msense_6) ? 6 : 10, (long)cmd->dbuf_p->serialNo);
MHVTL_DBG(2, " Page Control : %s(0x%02x)",
pcString[pc], pc);
MHVTL_DBG(2, " Page/Subpage Code: 0x%02x/0x%02x", pcode, subpcode);

0 comments on commit 85b3d6e

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