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
Tony Hutter <hutter2@llnl.gov>Committed on Apr 22 2024, 8:32 PM
Parents
rG6732e223bf70: etc/init.d: decide which variant to use at build time.
Branches
Unknown
Tags
Unknown