aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.h
diff options
context:
space:
mode:
authorWayne Boyer <wayneb@linux.vnet.ibm.com>2010-09-27 13:45:28 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-10-07 18:24:44 -0400
commit7262026f0eded76b935a12b9b15af05516a8610a (patch)
treea66ae900a7528feda79e9f5b40f4ec137de8aa00 /drivers/scsi/ipr.h
parent4ebcfb929b6be63bacdba34f6aae0f5b51432d2c (diff)
[SCSI] ipr: fix array error logging
The structure definitions for reporting array errors did not have the correct size for the Array WWID field. This patch fixes those definitions. It also fixes part of the output formatting that did not have newlines and fixes size calculations. Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com> Acked-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r--drivers/scsi/ipr.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index 67cae67378ad..aa8bb2f2c6ee 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -319,6 +319,11 @@ struct ipr_ext_vpd {
319 __be32 wwid[2]; 319 __be32 wwid[2];
320}__attribute__((packed)); 320}__attribute__((packed));
321 321
322struct ipr_ext_vpd64 {
323 struct ipr_vpd vpd;
324 __be32 wwid[4];
325}__attribute__((packed));
326
322struct ipr_std_inq_data { 327struct ipr_std_inq_data {
323 u8 peri_qual_dev_type; 328 u8 peri_qual_dev_type;
324#define IPR_STD_INQ_PERI_QUAL(peri) ((peri) >> 5) 329#define IPR_STD_INQ_PERI_QUAL(peri) ((peri) >> 5)
@@ -395,7 +400,7 @@ struct ipr_config_table_entry64 {
395 __be64 res_path; 400 __be64 res_path;
396 struct ipr_std_inq_data std_inq_data; 401 struct ipr_std_inq_data std_inq_data;
397 u8 reserved2[4]; 402 u8 reserved2[4];
398 __be64 reserved3[2]; // description text 403 __be64 reserved3[2];
399 u8 reserved4[8]; 404 u8 reserved4[8];
400}__attribute__ ((packed, aligned (8))); 405}__attribute__ ((packed, aligned (8)));
401 406
@@ -914,7 +919,7 @@ struct ipr_hostrcb_type_24_error {
914 u8 array_id; 919 u8 array_id;
915 u8 last_res_path[8]; 920 u8 last_res_path[8];
916 u8 protection_level[8]; 921 u8 protection_level[8];
917 struct ipr_ext_vpd array_vpd; 922 struct ipr_ext_vpd64 array_vpd;
918 u8 description[16]; 923 u8 description[16];
919 u8 reserved2[3]; 924 u8 reserved2[3];
920 u8 num_entries; 925 u8 num_entries;