diff options
Diffstat (limited to 'src/sg_sanitize.c')
-rw-r--r-- | src/sg_sanitize.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/sg_sanitize.c b/src/sg_sanitize.c index 9fc348c8..b4a10682 100644 --- a/src/sg_sanitize.c +++ b/src/sg_sanitize.c @@ -33,7 +33,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "1.12 20190113"; +static const char * version_str = "1.13 20190913"; /* Not all environments support the Unix sleep() */ #if defined(MSC_VER) || defined(__MINGW32__) @@ -389,14 +389,9 @@ print_dev_id(int fd, uint8_t * sinq_resp, int max_rlen, int verbose) if (n > (SAFE_STD_INQ_RESP_LEN - 4)) n = (SAFE_STD_INQ_RESP_LEN - 4); for (k = 0, has_sn = 0, has_di = 0; k < n; ++k) { - if (VPD_UNIT_SERIAL_NUM == b[4 + k]) { - if (has_di) { - if (verbose) - pr2serr("VPD_SUPPORTED_VPDS dis-ordered\n"); - return 0; - } + if (VPD_UNIT_SERIAL_NUM == b[4 + k]) ++has_sn; - } else if (VPD_DEVICE_ID == b[4 + k]) { + else if (VPD_DEVICE_ID == b[4 + k]) { ++has_di; break; } |