HomeClusterLabs Projects

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

Description

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

We weren't error-checking it, and this way we don't have to. GString
functions assert on memory error.

Ref T974

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

Details

Provenance
nrwahl2Authored on Tue, Jun 17, 4:03 AM
Parents
rP960d0422419f: Test: libcrmcommon: Test pcmk__time_format_hr() with nonzero usec
Branches
Unknown
Tags
Unknown
Tasks
T974: Error-check snprintf() calls