diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2007-12-14 05:01:49 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2007-12-14 05:01:49 +0000 |
commit | 980fd49d0b5848a5b2693e84abe25480cb7318db (patch) | |
tree | e1c9253eaf0b762fafa372e410c4adf8022adf45 | |
parent | e243d1d0d2e44d728da584d8a64e27ae040de71e (diff) | |
download | sg3_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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/sg_get_config.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -2,10 +2,10 @@ Each utility has its own version number, date of last change and some description at the top of its ".c" file. All utilities in the main directory have their own "man" pages. There is also a sg3_utils man page. -Changelog for sg3_utils-1.26 [20071212] +Changelog for sg3_utils-1.26 [20071214] - sg_ses: sync with ses2r19 - sg_get_config: sync with mmc6r01 - - allow Firmware upgrade feature descriptor be 4 bytes long + - allow Firmware upgrade feature descriptor to be 4 bytes long - sg_cmds_extra: add vrprotect argument to sg_ll_verify10() - add sg_ll_get_performance() and sg_ll_set_cd_speed() - sg_verify: add --vrprotect= option 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 */ |