aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-12-11 02:44:47 +0000
committerWarner Losh <imp@FreeBSD.org>2024-01-29 04:43:56 +0000
commit34f0a01b6bd4ff0e61a7066729515148400e0982 (patch)
treeea7b948ffd1e0ac3dffe4f58b441fe38785c8ba3
parent9c1bad2da5ae2a2a3d957c97dcf33c09b34e1c47 (diff)
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
-rw-r--r--sys/dev/mpi3mr/mpi3mr_cam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mpi3mr/mpi3mr_cam.c b/sys/dev/mpi3mr/mpi3mr_cam.c
index 3cef46f3f642..b842e2a05bda 100644
--- a/sys/dev/mpi3mr/mpi3mr_cam.c
+++ b/sys/dev/mpi3mr/mpi3mr_cam.c
@@ -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);
}
}