ssc: MODE SELECT - Fix mode parameter processing

Fix incorrect loop calculations if multiple mode pages supplied
with single MODE SELECT

Based on patch supplied by Sebastian Herbszt

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Mark Harvey <markh794@gmail.com>
ssc: MODE SELECT - Return sense error on page codes not handled by MODE SELECT

Correct fix here would be to update MODE SELECT to support all mode pages the target
understands, instead of only DATA COMPRESSION, DEVICE CONFIGURATION and
EXTENDED DEVICE CONFIGURATION.

It's on the TODO list.

Signed-off-by: Mark Harvey <markh794@gmail.com>
ssc: MODE SELECT - Slightly more intelligent about amount of data to log

Instead of blindly logging 32 bytes of payload, blindly log 8/16/24 or 32
bytes depending on page length. Only gets logged at VERBOSE 3.

Signed-off-by: Mark Harvey <markh794@gmail.com>