HomeClusterLabs Projects

Refactor: libcrmcommon: Best practices in log_xml_node_and_children()

Description

Refactor: libcrmcommon: Best practices in log_xml_node_and_children()

...and pcmk__xml_log().

Add doxygen blocks, limit variable scope, improve variable name, use
const where appropriate, improve spacing and indentation, use
pcmk__str_update(), etc.

Rename to log_xml_node(), since we log children only if the
xml_log_option_children flag is set.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Dec 18 2022, 1:04 AM
Parents
rP4ec9c8ae03a5: API: libcrmcommon: patchset argument of xml_log_patchset() is now const
Branches
Unknown
Tags
Unknown