aboutsummaryrefslogtreecommitdiff
path: root/src/sg_get_config.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2007-12-14 05:01:49 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2007-12-14 05:01:49 +0000
commit980fd49d0b5848a5b2693e84abe25480cb7318db (patch)
treee1c9253eaf0b762fafa372e410c4adf8022adf45 /src/sg_get_config.c
parente243d1d0d2e44d728da584d8a64e27ae040de71e (diff)
downloadsg3_utils-980fd49d0b5848a5b2693e84abe25480cb7318db.tar.gz
further sg_get_config firmware upgrade feature tweak
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@125 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_get_config.c')
-rw-r--r--src/sg_get_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_get_config.c b/src/sg_get_config.c
index 672a8a55..de46fb2a 100644
--- a/src/sg_get_config.c
+++ b/src/sg_get_config.c
@@ -49,7 +49,7 @@
*/
-static char * version_str = "0.31 20071212"; /* mmc6r01 */
+static char * version_str = "0.31 20071214"; /* mmc6r01 */
#define MX_ALLOC_LEN 8192
#define NAME_BUFF_SZ 64
@@ -745,7 +745,7 @@ static void decode_feature(int feature, unsigned char * ucp, int len)
printf(" additional length [%d] too short\n", len - 4);
break;
}
- if (len < 8)
+ if (len > 4)
printf(" M5=%d\n", !!(ucp[4] & 0x1));
break;
case 0x105: /* Timeout */