HomeFreeBSD

Clean up existing VERIFY*() macros.

Description

Clean up existing VERIFY*() macros.

Chiefly:

  • Remove unnecessary parentheses around variable names.
  • Remove spaces between the type and variable in casts.
  • Make the panic message for VERIFY0() reflect how the macro is used.
  • Use %p to format pointers, except in Linux kernel code.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Kay Pedersen <mail@mkwg.de>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Dag-Erling Smørgrav <des@FreeBSD.org>
Closes #15225

Details

Provenance
desAuthored on Aug 30 2023, 3:13 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 20 2023, 12:21 AM
Parents
rGc63aabaf1c54: Improve the handling of sharesmb,sharenfs properties
Branches
Unknown
Tags
Unknown

Event Timeline