Fix compile with -DDEBUG by using the correct mfi_pd_ref union definition
in mfireg.h. Submitted by: gcooper Reviewed by: jhb Approved by: cperciva (mentor) MFC after: 1 week
This commit is contained in:
parent
19ebc67beb
commit
0c019d8c6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213674
@ -1024,7 +1024,7 @@ dump_config(int fd, struct mfi_config_data *config)
|
||||
ar->num_drives);
|
||||
printf(" size = %ju\n", (uintmax_t)ar->size);
|
||||
for (j = 0; j < ar->num_drives; j++) {
|
||||
device_id = ar->pd[j].ref.device_id;
|
||||
device_id = ar->pd[j].ref.v.device_id;
|
||||
if (device_id == 0xffff)
|
||||
printf(" drive MISSING\n");
|
||||
else {
|
||||
@ -1080,7 +1080,7 @@ dump_config(int fd, struct mfi_config_data *config)
|
||||
sp = (struct mfi_spare *)p;
|
||||
printf(" %s spare %u ",
|
||||
sp->spare_type & MFI_SPARE_DEDICATED ? "dedicated" :
|
||||
"global", sp->ref.device_id);
|
||||
"global", sp->ref.v.device_id);
|
||||
printf("%s", mfi_pdstate(MFI_PD_STATE_HOT_SPARE));
|
||||
printf(" backs:\n");
|
||||
for (j = 0; j < sp->array_count; j++)
|
||||
|
Loading…
Reference in New Issue
Block a user