summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2019-03-05 01:43:08 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2019-03-05 01:43:08 +0000
commitc16fcc8479a39500d0f20cff27859b88b402b322 (patch)
tree60c1eddf0e3cf5468ba87f3fecbea0eacc714def /sys/dev/pci
parent74954c352846c98cc7b1047adc946cecc202be96 (diff)
swap MFI_LD_PROG_BGI and MFI_LD_PROG_CC cases to match value order
ok dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/mfii.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c
index 31337acd185..8a726f1985f 100644
--- a/sys/dev/pci/mfii.c
+++ b/sys/dev/pci/mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfii.c,v 1.59 2019/03/01 01:58:17 jmatthew Exp $ */
+/* $OpenBSD: mfii.c,v 1.60 2019/03/05 01:43:07 jmatthew Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
@@ -2917,19 +2917,20 @@ mfii_ioctl_vol(struct mfii_softc *sc, struct bioc_vol *bv)
/* additional status can modify MFI status */
switch (sc->sc_ld_details[i].mld_progress.mlp_in_prog) {
- case MFI_LD_PROG_BGI:
+ case MFI_LD_PROG_CC:
bv->bv_status = BIOC_SVSCRUB;
- per = (int)sc->sc_ld_details[i].mld_progress.mlp_bgi.mp_progress;
+ per = (int)sc->sc_ld_details[i].mld_progress.mlp_cc.mp_progress;
bv->bv_percent = (per * 100) / 0xffff;
bv->bv_seconds =
- sc->sc_ld_details[i].mld_progress.mlp_bgi.mp_elapsed_seconds;
+ sc->sc_ld_details[i].mld_progress.mlp_cc.mp_elapsed_seconds;
break;
- case MFI_LD_PROG_CC:
+
+ case MFI_LD_PROG_BGI:
bv->bv_status = BIOC_SVSCRUB;
- per = (int)sc->sc_ld_details[i].mld_progress.mlp_cc.mp_progress;
+ per = (int)sc->sc_ld_details[i].mld_progress.mlp_bgi.mp_progress;
bv->bv_percent = (per * 100) / 0xffff;
bv->bv_seconds =
- sc->sc_ld_details[i].mld_progress.mlp_cc.mp_elapsed_seconds;
+ sc->sc_ld_details[i].mld_progress.mlp_bgi.mp_elapsed_seconds;
break;
case MFI_LD_PROG_FGI: