HomeFreeBSD

kern/rman: update DPRINTF() macro, avoid semicolon swallowing match function

Description

kern/rman: update DPRINTF() macro, avoid semicolon swallowing match function

Using a variadic macro allows passing everything properly to printf().
Using the do { } while(0) construct ensures the macro acts like any
other single statement. This shows just how long some of this has
existed.

Reviewed by: imp,jhb
Pull Request: https://github.com/freebsd/freebsd-src/pull/1224

Details

Provenance
ehem_freebsd_m5p.comAuthored on May 9 2024, 5:34 AM
impCommitted on Tue, May 21, 11:52 PM
Parents
rG408572a24e55: libnvmf: avoid resource leak
Branches
Unknown
Tags
Unknown