svn commit: r213674 - head/usr.sbin/mfiutil
Randi Harper
randi at FreeBSD.org
Sun Oct 10 20:54:01 UTC 2010
Author: randi
Date: Sun Oct 10 20:54:01 2010
New Revision: 213674
URL: http://svn.freebsd.org/changeset/base/213674
Log:
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
Modified:
head/usr.sbin/mfiutil/mfi_config.c
Modified: head/usr.sbin/mfiutil/mfi_config.c
==============================================================================
--- head/usr.sbin/mfiutil/mfi_config.c Sun Oct 10 20:49:33 2010 (r213673)
+++ head/usr.sbin/mfiutil/mfi_config.c Sun Oct 10 20:54:01 2010 (r213674)
@@ -1024,7 +1024,7 @@ dump_config(int fd, struct mfi_config_da
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_da
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++)
More information about the svn-src-all
mailing list