diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-01-28 20:51:37 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-01-28 20:51:37 +0000 |
commit | d5890d56b6bcb6d1aa277f0bab78abb1ef66a88e (patch) | |
tree | 7040a74064a5c63a64b95e577e402fb65aacb15e /src/sg_scan_win32.c | |
parent | bff5298804af11eab5072217d362f55707849a5a (diff) | |
download | sg3_utils-d5890d56b6bcb6d1aa277f0bab78abb1ef66a88e.tar.gz |
cleanup masks for PDT [0x1f] and group_number [0x3f]
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@934 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_scan_win32.c')
-rw-r--r-- | src/sg_scan_win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_scan_win32.c b/src/sg_scan_win32.c index 4ba59836..06851497 100644 --- a/src/sg_scan_win32.c +++ b/src/sg_scan_win32.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018 Douglas Gilbert. + * Copyright (c) 2006-2022 Douglas Gilbert. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. @@ -43,7 +43,7 @@ #include "sg_pt_win32.h" -static const char * version_str = "1.22 (win32) 20181110"; +static const char * version_str = "1.23 (win32) 20220127"; #define MAX_SCSI_ELEMS 4096 #define MAX_ADAPTER_NUM 256 @@ -366,7 +366,7 @@ enum_scsi_adapters(void) printf("%-15s", b); snprintf(b, sizeof(b) - 1, "claimed=%d pdt=%xh %s ", pid->DeviceClaimed, - pid->InquiryData[0] % 0x3f, + pid->InquiryData[0] % PDT_MASK, ((0 == pid->InquiryData[4]) ? "dubious" : "")); printf("%-26s", b); |