HomeClusterLabs Projects

Refactor: libcrmcommon: Avoid snprintf() in crm_log_filter()

Description

Refactor: libcrmcommon: Avoid snprintf() in crm_log_filter()

To avoid the need to error-check snprintf() explicitly, which we have
not been doing. This also avoids imposing an arbitrary (albeit
reasonable) limit of 500 characters on tag length.

It should be simple to replace some of this logic with a call to
g_strsplit(). However, that would require testing that I don't feel like
doing right now. The current change seems straightforward enough.

Ref T974

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

Details

Provenance
nrwahl2Authored on Mon, Jun 23, 4:17 AM
Parents
rPe75b48549fac: Refactor: libcrmcommon: Avoid snprintf() in crm_write_blackbox()
Branches
Unknown
Tags
Unknown
Tasks
T974: Error-check snprintf() calls