HomeFreeBSD

nvlist: Add nvlist_snprintf() and zfs_dbgmsg_nvlist()

Description

nvlist: Add nvlist_snprintf() and zfs_dbgmsg_nvlist()

Add nvlist_snprintf() to print a nvlist to a buffer. This is basically
the snprintf() version of dump_nvlist(). Along with that, add a
zfs_dbgmsg_nvlist() to print out an nvlist to dbgmsg. This will aid in
debugging.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #17215

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Apr 18 2025, 1:22 PM
GitHub <noreply@github.com>Committed on Apr 18 2025, 1:22 PM
Parents
rGba03054c83f4: CI: Add Fedora 42 runner (#17249)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG8d1489735bba: nvlist: Add nvlist_snprintf() and zfs_dbgmsg_nvlist() (authored by Tony Hutter <hutter2@llnl.gov>).Apr 18 2025, 1:22 PM