mpi3mr: Fix confusion over | and &

Use sc->mpi3mr_debug & MPI3MR_IOT over the | version to test if a bit is
set.

CID: 1529718
Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2023-12-10 19:44:47 -07:00
parent 9c1bad2da5
commit 34f0a01b6b

View file

@ -1187,7 +1187,7 @@ mpi3mr_enqueue_request(struct mpi3mr_softc *sc, struct mpi3mr_cmd *cm)
mpi3mr_dprint(sc, MPI3MR_IOT,
"VD: Setting divert flag for tg_id(%d), persist_id(%d)\n",
tg->id, targ->per_id);
if (sc->mpi3mr_debug | MPI3MR_IOT)
if (sc->mpi3mr_debug & MPI3MR_IOT)
mpi3mr_print_cdb(ccb);
mpi3mr_set_io_divert_for_all_vd_in_tg(sc,
tg, 1);
@ -1209,7 +1209,7 @@ mpi3mr_enqueue_request(struct mpi3mr_softc *sc, struct mpi3mr_cmd *cm)
mpi3mr_dprint(sc, MPI3MR_IOT,
"PD: Setting divert flag for persist_id(%d)\n",
targ->per_id);
if (sc->mpi3mr_debug | MPI3MR_IOT)
if (sc->mpi3mr_debug & MPI3MR_IOT)
mpi3mr_print_cdb(ccb);
}
}