summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_all.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-10-12 00:30:16 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-10-12 00:30:16 +0000
commit41a69f547a4ad68bdba2800a1671f1d6f0065cf0 (patch)
tree5fc5c4c258205dd156de4b0a94f0e47525827f26 /sys/scsi/scsi_all.h
parentecf765dd5674d2adff47fe11cc3a614b094d9118 (diff)
mask bits correctly in devid vpd for the PI
Diffstat (limited to 'sys/scsi/scsi_all.h')
-rw-r--r--sys/scsi/scsi_all.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h
index 7d0395ec251..e272a9ac97d 100644
--- a/sys/scsi/scsi_all.h
+++ b/sys/scsi/scsi_all.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_all.h,v 1.46 2008/06/02 15:43:59 krw Exp $ */
+/* $OpenBSD: scsi_all.h,v 1.47 2009/10/12 00:30:15 dlg Exp $ */
/* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */
/*
@@ -284,7 +284,7 @@ struct scsi_vpd_serial {
struct scsi_vpd_devid_hdr {
u_int8_t pi_code;
-#define VPD_DEVID_PI(_f) (((_f) >> 4) & 0xf0)
+#define VPD_DEVID_PI(_f) (((_f) >> 4) & 0x0f)
#define VPD_DEVID_CODE(_f) (((_f) >> 0) & 0x0f)
#define VPD_DEVID_CODE_BINARY 0x1
#define VPD_DEVID_CODE_ASCII 0x2