]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
camcontrol: simplify summary logic for defects
authorWarner Losh <imp@FreeBSD.org>
Mon, 19 Jun 2023 20:43:30 +0000 (14:43 -0600)
committerWarner Losh <imp@FreeBSD.org>
Mon, 19 Jun 2023 20:45:43 +0000 (14:45 -0600)
commit2e105b61e98d976045f0ec042cfcb5d45504bde0
tree93cfb6befb7d4ee2ae2c0634e93a7297d94990fc
parentf20d86e1714365ae4d098d101aac302a3572eb1d
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
sbin/camcontrol/camcontrol.c