Fix: tests: replace truncation-prone logging helper
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Oct 2019 18:01:54 +0000 (14:01 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Oct 2019 18:30:27 +0000 (14:30 -0400)
commita7793ad175612b1d94088d292eed13d77e9cd853
tree4ff623d695056c8ba5c4ab81b0ecbc2189630df3
parent5d86b1900f85c6d95b2bc691b48e6e99f20b7f9c
Fix: tests: replace truncation-prone logging helper

The printerr() error logging scheme in test_utils_expand_path
is prone to unexpected truncations which results in a lot of
warnings when building using GCC 9.2.

It is replaced by a variable-argument macro that uses fprintf()
directly.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_utils_expand_path.c
This page took 0.025709 seconds and 4 git commands to generate.