HomeFreeBSD

camcontrol: simplify summary logic for defects

Description

camcontrol: simplify summary logic for defects

We don't need to count the number of lists requested. Instead, use the
more general form of checking to see if any of the non-defect format
bits are set. Also, check summary boolean to control summary reporting
behavior.

Sponsored by: Netflix
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D40524

Details

Provenance
impAuthored on Jun 19 2023, 8:43 PM
Reviewer
mav
Differential Revision
D40524: camcontrol: simplify summary logic for defects
Parents
rGf20d86e17143: camcontrol: No need to set CAM_ARG_[PG]LIST in defects
Branches
Unknown
Tags
Unknown