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:10 +0000 (14:30 -0400)
commit559445217735a8202a6009c00793a17cd92aed82
treea3e35711fecb4c450b6949ff8f230b0ac71c06e6
parent76cdeaecd77dbb124bba7021a29b2b6426f074aa
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.024683 seconds and 4 git commands to generate.