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_ses.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_ses.c')
-rw-r--r-- | src/sg_ses.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_ses.c b/src/sg_ses.c index 9b16134b..aa545a87 100644 --- a/src/sg_ses.c +++ b/src/sg_ses.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2021 Douglas Gilbert. + * Copyright (c) 2004-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. @@ -38,7 +38,7 @@ * commands tailored for SES (enclosure) devices. */ -static const char * version_str = "2.54 20211028"; /* ses4r04 */ +static const char * version_str = "2.55 20220127"; /* ses4r04 */ #define MX_ALLOC_LEN ((64 * 1024) - 4) /* max allowable for big enclosures */ #define MX_ELEM_HDR 1024 @@ -5750,7 +5750,7 @@ main(int argc, char * argv[]) pr2serr("Short INQUIRY response, not looking good\n"); printf(" %.8s %.16s %.4s\n", inq_rsp + 8, inq_rsp + 16, inq_rsp + 32); - pd_type = 0x1f & inq_rsp[0]; + pd_type = PDT_MASK & inq_rsp[0]; cp = sg_get_pdt_str(pd_type, sizeof(buff), buff); if (0xd == pd_type) { if (vb) |