aboutsummaryrefslogtreecommitdiff
path: root/src/sg_scan_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sg_scan_linux.c')
-rw-r--r--src/sg_scan_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sg_scan_linux.c b/src/sg_scan_linux.c
index c04206a1..9fa3374a 100644
--- a/src/sg_scan_linux.c
+++ b/src/sg_scan_linux.c
@@ -452,7 +452,7 @@ int sg3_inq(int sg_fd, uint8_t * inqBuff, bool do_extra)
printf(" %.8s %.16s %.4s ", p + 8, p + 16, p + 32);
printf("[rmb=%d cmdq=%d pqual=%d pdev=0x%x] ",
!!(p[1] & 0x80), !!(p[7] & 2), (p[0] & 0xe0) >> 5,
- (p[0] & 0x1f));
+ (p[0] & PDT_MASK));
if (do_extra && sg_io)
printf("dur=%ums\n", io_hdr.duration);
else