summaryrefslogtreecommitdiff
path: root/sys/dev/pv
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-09-02 22:00:27 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-09-02 22:00:27 +0000
commit51cf437f393031fc9487e6e9bc85fc0588c3ea11 (patch)
treeaa1fc3f86b20796c49d5ec58b2404d59a997ccba /sys/dev/pv
parent9c6ad5050b4e29663cd26a07838ebdaa3f9bd466 (diff)
When building emulated INQUIRY results use the SCSI_REV_* #define's to
initialize the 'version' field. Not numbers.
Diffstat (limited to 'sys/dev/pv')
-rw-r--r--sys/dev/pv/vioblk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/vioblk.c b/sys/dev/pv/vioblk.c
index dedde088838..f399474f05c 100644
--- a/sys/dev/pv/vioblk.c
+++ b/sys/dev/pv/vioblk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vioblk.c,v 1.27 2020/09/01 12:17:53 krw Exp $ */
+/* $OpenBSD: vioblk.c,v 1.28 2020/09/02 22:00:26 krw Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch.
@@ -573,7 +573,7 @@ vioblk_scsi_inq(struct scsi_xfer *xs)
bzero(&inqd, sizeof(inqd));
inqd.device = T_DIRECT;
- inqd.version = 0x05; /* SPC-3 */
+ inqd.version = SCSI_REV_SPC3;
inqd.response_format = 2;
inqd.additional_length = 32;
inqd.flags |= SID_CmdQue;