From bcdf18e4dd92f592617c35edbc9ffbb2817bd36c Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Tue, 17 Sep 2019 21:53:05 +0000 Subject: sync with fixes from Redhat, via github; remove testing/Makefile.cplus and testing/Makefile.cplus_fb git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@832 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_sanitize.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/sg_sanitize.c') 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; } -- cgit v1.2.3