From 55ef988100b3ab3caee5503da68d6de24d7ee4cd Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Thu, 2 Sep 2010 11:54:45 +0000 Subject: the page_length field in the vpd page header is 2 bytes, not 1. ok krw@ marco@ matthew@ --- sys/scsi/scsi_all.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/scsi/scsi_all.h') diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h index b92149de4d7..bd3690bf6d8 100644 --- a/sys/scsi/scsi_all.h +++ b/sys/scsi/scsi_all.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_all.h,v 1.50 2010/09/01 04:44:26 dlg Exp $ */ +/* $OpenBSD: scsi_all.h,v 1.51 2010/09/02 11:54:44 dlg Exp $ */ /* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */ /* @@ -263,8 +263,7 @@ struct scsi_inquiry_data { struct scsi_vpd_hdr { u_int8_t device; u_int8_t page_code; - u_int8_t reserved; - u_int8_t page_length; + u_int8_t page_length[2]; }; struct scsi_vpd_serial { -- cgit v1.2.3