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:45 +0000 (14:30 -0400)
commitd2ce52fe079fe1ab6c8e2563ebf7fcb815494f1b
tree9a806fb69c5179b6810673ab13da0088a8714d86
parentd6cfe8a5680feb81ad34b8bfcc396dfadc045a91
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.027532 seconds and 4 git commands to generate.